summaryrefslogtreecommitdiffstats
path: root/runtime/modules.c
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/modules.c
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/modules.c')
-rw-r--r--runtime/modules.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/modules.c b/runtime/modules.c
index 41645a27..fd3468d8 100644
--- a/runtime/modules.c
+++ b/runtime/modules.c
@@ -493,10 +493,14 @@ doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)(), rsRetVal(*)(), modInfo_
CHKiRet(parser.Construct(&pParser));
/* check some features */
- localRet = pNew->isCompatibleWithFeature(sFEATUREAtomaticSanitazion);
+ localRet = pNew->isCompatibleWithFeature(sFEATUREAutomaticSanitazion);
if(localRet == RS_RET_OK){
CHKiRet(parser.SetDoSanitazion(pParser, TRUE));
}
+ localRet = pNew->isCompatibleWithFeature(sFEATUREAutomaticPRIParsing);
+ if(localRet == RS_RET_OK){
+ CHKiRet(parser.SetDoPRIParsing(pParser, TRUE));
+ }
CHKiRet(parser.SetName(pParser, pParserName));
CHKiRet(parser.SetModPtr(pParser, pNew));