summaryrefslogtreecommitdiffstats
path: root/tools/pmrfc5424.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-03 18:44:02 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-03 18:44:02 +0100
commitb1db196953713dd09c499a3edf81347bd903c19e (patch)
tree7c4d1d4a92337f0cd1538c7cd9bc77904901ce8d /tools/pmrfc5424.c
parent6f511cecfae3592f271627ebcb41e6a8c4f831e9 (diff)
downloadrsyslog-b1db196953713dd09c499a3edf81347bd903c19e.tar.gz
rsyslog-b1db196953713dd09c499a3edf81347bd903c19e.tar.xz
rsyslog-b1db196953713dd09c499a3edf81347bd903c19e.zip
one step closer to dynamically loadable parsers
This is a milestone commit, which adds new code that breaks nothing, but also does not add any visible change. Just prep work...
Diffstat (limited to 'tools/pmrfc5424.c')
-rw-r--r--tools/pmrfc5424.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/pmrfc5424.c b/tools/pmrfc5424.c
index 61b2aff9..acc21817 100644
--- a/tools/pmrfc5424.c
+++ b/tools/pmrfc5424.c
@@ -38,14 +38,18 @@
#include "module-template.h"
#include "glbl.h"
#include "errmsg.h"
+#include "parser.h"
+#include "unicode-helper.h"
MODULE_TYPE_PARSER
+PARSER_NAME("rsyslog.rfc5424")
/* internal structures
*/
DEF_PMOD_STATIC_DATA
DEFobjCurrIf(errmsg)
DEFobjCurrIf(glbl)
+DEFobjCurrIf(parser)
/* config data */
@@ -66,6 +70,7 @@ CODESTARTmodExit
/* release what we no longer need */
objRelease(errmsg, CORE_COMPONENT);
objRelease(glbl, CORE_COMPONENT);
+ objRelease(parser, CORE_COMPONENT);
ENDmodExit
@@ -82,6 +87,10 @@ CODESTARTmodInit
CODEmodInit_QueryRegCFSLineHdlr
CHKiRet(objUse(glbl, CORE_COMPONENT));
CHKiRet(objUse(errmsg, CORE_COMPONENT));
+ CHKiRet(objUse(parser, CORE_COMPONENT));
+
+ dbgprintf("rfc5424 parser init called\n");
+ dbgprintf("GetParserName addr %p\n", GetParserName);
ENDmodInit
/* vim:set ai: