diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-04 12:35:36 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-04 12:35:36 +0200 |
commit | b473bae2d7bd907b5e9a6ee9fc7cadf92dfe69b8 (patch) | |
tree | aa9b382885afcd38bd031b1b968ace24c99604a2 /runtime/rsconf.c | |
parent | 68b9fe72b89ff47efdbed8fea4185bac84279a51 (diff) | |
download | rsyslog-b473bae2d7bd907b5e9a6ee9fc7cadf92dfe69b8.tar.gz rsyslog-b473bae2d7bd907b5e9a6ee9fc7cadf92dfe69b8.tar.xz rsyslog-b473bae2d7bd907b5e9a6ee9fc7cadf92dfe69b8.zip |
new ruleengine: skeleton for reading conf file in place
code still does not work, actual functions not implemented
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r-- | runtime/rsconf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c index 5d2407ec..0f31e515 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -466,6 +466,14 @@ finalize_it: cnfruleDestruct(cnfrule); } +void cnfDoScript(struct cnfstmt *script) +{ + // TODO: streamline this, call directly into ruleset from grammar.y + // TODO: BSD-Style blocks? + dbgprintf("cnf:global:script\n"); + ruleset.AddScript(ruleset.GetCurrent(loadConf), script); +} + void cnfDoCfsysline(char *ln) { DBGPRINTF("cnf:global:cfsysline: %s\n", ln); |