diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-04 11:33:09 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-04 11:33:09 +0100 |
commit | ef661fe13c0ab5018afedb1cb5b8cffab05ad7c4 (patch) | |
tree | d7698c542ba3d49e9a75781559034f39f910d95e /runtime/parser.h | |
parent | 1b7f5c54684db29c096e09238648a45dce78ebee (diff) | |
download | rsyslog-ef661fe13c0ab5018afedb1cb5b8cffab05ad7c4.tar.gz rsyslog-ef661fe13c0ab5018afedb1cb5b8cffab05ad7c4.tar.bz2 rsyslog-ef661fe13c0ab5018afedb1cb5b8cffab05ad7c4.zip |
finalized parser module calling interface
looks like we are almost done and need only to add the ruleset parser-specific
config options.
Diffstat (limited to 'runtime/parser.h')
-rw-r--r-- | runtime/parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/parser.h b/runtime/parser.h index d600fb19..a92b9920 100644 --- a/runtime/parser.h +++ b/runtime/parser.h @@ -39,6 +39,7 @@ struct parser_s { uchar *pName; /* name of this parser */ modInfo_t *pModule; /* pointer to parser's module */ bool bDoSanitazion; /* do standard message sanitazion before calling parser? */ + bool bDoPRIParsing; /* do standard PRI parsing before calling parser? */ }; /* interfaces */ @@ -50,6 +51,7 @@ BEGINinterface(parser) /* name must also be changed in ENDinterface macro! */ rsRetVal (*SetName)(parser_t *pThis, uchar *name); rsRetVal (*SetModPtr)(parser_t *pThis, modInfo_t *pMod); rsRetVal (*SetDoSanitazion)(parser_t *pThis, int); + rsRetVal (*SetDoPRIParsing)(parser_t *pThis, int); rsRetVal (*FindParser)(parser_t **ppThis, uchar*name); rsRetVal (*InitParserList)(parserList_t **pListRoot); rsRetVal (*AddParserToList)(parserList_t **pListRoot, parser_t *pParser); |