diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-24 15:08:12 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-24 15:08:12 +0200 |
commit | ab7b1b381a467d6a61760a5cb84ef804a74598f1 (patch) | |
tree | dcc737c05f7665ccc09a37bf3d2066a2ab2e21ac /runtime | |
parent | 2f4292a81c2bf89b349f0e276c69616ac6e51164 (diff) | |
download | rsyslog-ab7b1b381a467d6a61760a5cb84ef804a74598f1.tar.gz rsyslog-ab7b1b381a467d6a61760a5cb84ef804a74598f1.tar.xz rsyslog-ab7b1b381a467d6a61760a5cb84ef804a74598f1.zip |
add base plumbing for template() config object to grammar
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/rsconf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c index bd002353..f07ab314 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -386,6 +386,7 @@ yyerror(char *s) } void cnfDoObj(struct cnfobj *o) { +int bChkUnuse = 1; // TODO: Delete dbgprintf("cnf:global:obj: "); cnfobjPrint(o); switch(o->objType) { @@ -398,7 +399,16 @@ void cnfDoObj(struct cnfobj *o) case CNFOBJ_ACTION: actionProcessCnf(o); break; + case CNFOBJ_TPL: + //processTemplate(o); +bChkUnuse = 0; + break; + case CNFOBJ_PROPERTY: + //processTemplate(o); +bChkUnuse = 0; + break; } +if(bChkUnuse) nvlstChkUnused(o->nvlst); cnfobjDestruct(o); } |