summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-06-01 18:51:55 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-06-01 18:51:55 +0200
commit527bfcea5c9ca5c8414620a022f097d4e53af784 (patch)
treef4bcee98f1f1f1d372a914a247dad86b5b36ad6e /runtime/rsyslog.c
parent59227a861821b2e0e37357c0695f6b3d9f11dd9d (diff)
downloadrsyslog-527bfcea5c9ca5c8414620a022f097d4e53af784.tar.gz
rsyslog-527bfcea5c9ca5c8414620a022f097d4e53af784.tar.xz
rsyslog-527bfcea5c9ca5c8414620a022f097d4e53af784.zip
first implementation of strgen interface
and a first built-in strgen module. Some tweaks and more default strgens are needed, but the code doesn't look too bad ;)
Diffstat (limited to 'runtime/rsyslog.c')
-rw-r--r--runtime/rsyslog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/rsyslog.c b/runtime/rsyslog.c
index c321484d..a9794840 100644
--- a/runtime/rsyslog.c
+++ b/runtime/rsyslog.c
@@ -81,6 +81,7 @@
#include "rule.h"
#include "ruleset.h"
#include "parser.h"
+#include "strgen.h"
#include "atomic.h"
/* forward definitions */
@@ -185,6 +186,8 @@ rsrtInit(char **ppErrObj, obj_if_t *pObjIF)
CHKiRet(confClassInit(NULL));
if(ppErrObj != NULL) *ppErrObj = "parser";
CHKiRet(parserClassInit(NULL));
+ if(ppErrObj != NULL) *ppErrObj = "strgen";
+ CHKiRet(strgenClassInit(NULL));
/* dummy "classes" */
if(ppErrObj != NULL) *ppErrObj = "str";