diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 10:07:03 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 10:07:03 +0000 |
commit | cc768428f3226e3bc331c203cc4b0ab2441e4f09 (patch) | |
tree | 6d011624243e7e80f34cd542d16f20aceb606273 /cfsysline.c | |
parent | 8e6603047745cf1b1debd091406183070660df77 (diff) | |
download | rsyslog-cc768428f3226e3bc331c203cc4b0ab2441e4f09.tar.gz rsyslog-cc768428f3226e3bc331c203cc4b0ab2441e4f09.tar.xz rsyslog-cc768428f3226e3bc331c203cc4b0ab2441e4f09.zip |
- added doCustomHdlr() to cfsysline.c - this completes implementing
functions for canned handlers.
Diffstat (limited to 'cfsysline.c')
-rw-r--r-- | cfsysline.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 */ |