diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-01 18:51:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-01 18:51:55 +0200 |
commit | 527bfcea5c9ca5c8414620a022f097d4e53af784 (patch) | |
tree | f4bcee98f1f1f1d372a914a247dad86b5b36ad6e /tools/syslogd.c | |
parent | 59227a861821b2e0e37357c0695f6b3d9f11dd9d (diff) | |
download | rsyslog-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 'tools/syslogd.c')
-rw-r--r-- | tools/syslogd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index d5df8b91..49f7ed52 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -116,6 +116,7 @@ #include "omdiscard.h" #include "pmrfc5424.h" #include "pmrfc3164.h" +#include "smtradfile.h" #include "threads.h" #include "wti.h" #include "queue.h" @@ -2000,6 +2001,9 @@ static rsRetVal loadBuildInModules(void) CHKiRet(parser.AddDfltParser(UCHAR_CONSTANT("rsyslog.rfc5424"))); CHKiRet(parser.AddDfltParser(UCHAR_CONSTANT("rsyslog.rfc3164"))); + /* load build-in strgen modules */ + CHKiRet(module.doModInit(modInitsmtradfile, UCHAR_CONSTANT("builtin-smtradfile"), NULL)); + /* ok, initialization of the command handler probably does not 100% belong right in * this space here. However, with the current design, this is actually quite a good * place to put it. We might decide to shuffle it around later, but for the time |