From cc768428f3226e3bc331c203cc4b0ab2441e4f09 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 31 Jul 2007 10:07:03 +0000 Subject: - added doCustomHdlr() to cfsysline.c - this completes implementing functions for canned handlers. --- cfsysline.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cfsysline.c') diff --git a/cfsysline.c b/cfsysline.c index 1a045321..ae0166e2 100644 --- a/cfsysline.c +++ b/cfsysline.c @@ -80,6 +80,24 @@ finalize_it: } +/* Parse a number from the configuration line. This is more or less + * a shell to call the custom handler. + * rgerhards, 2007-07-31 + */ +rsRetVal doCustomHdlr(uchar **pp, rsRetVal (*pSetHdlr)(uchar**, void*), void *pVal) +{ + DEFiRet; + + assert(pp != NULL); + assert(*pp != NULL); + + CHKiRet(pSetHdlr(pp, pVal)); + +finalize_it: + return iRet; +} + + /* Parse a number from the configuration line. * rgerhards, 2007-07-31 */ -- cgit v1.2.3