From b473bae2d7bd907b5e9a6ee9fc7cadf92dfe69b8 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 4 Sep 2012 12:35:36 +0200 Subject: new ruleengine: skeleton for reading conf file in place code still does not work, actual functions not implemented --- runtime/rsconf.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'runtime/rsconf.c') 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); -- cgit v1.2.3