summaryrefslogtreecommitdiffstats
path: root/runtime/parser.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-04 11:33:09 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-04 11:33:09 +0100
commitef661fe13c0ab5018afedb1cb5b8cffab05ad7c4 (patch)
treed7698c542ba3d49e9a75781559034f39f910d95e /runtime/parser.h
parent1b7f5c54684db29c096e09238648a45dce78ebee (diff)
downloadrsyslog-ef661fe13c0ab5018afedb1cb5b8cffab05ad7c4.tar.gz
rsyslog-ef661fe13c0ab5018afedb1cb5b8cffab05ad7c4.tar.xz
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.h2
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);