diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-25 13:30:53 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-25 13:30:53 +0200 |
commit | 6258cb42fd407b9388de63c746634b4df03e78eb (patch) | |
tree | 258f407772a4457dcaf9aaea4388bd5ef5576164 /grammar/rainerscript.h | |
parent | 27a0078958d808a323c945b58b77ee96ee690444 (diff) | |
download | rsyslog-6258cb42fd407b9388de63c746634b4df03e78eb.tar.gz rsyslog-6258cb42fd407b9388de63c746634b4df03e78eb.tar.xz rsyslog-6258cb42fd407b9388de63c746634b4df03e78eb.zip |
milestone: base plumbing for LIST-type templates mostly in place
Diffstat (limited to 'grammar/rainerscript.h')
-rw-r--r-- | grammar/rainerscript.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/grammar/rainerscript.h b/grammar/rainerscript.h index 83a253f7..4c625cd8 100644 --- a/grammar/rainerscript.h +++ b/grammar/rainerscript.h @@ -38,6 +38,15 @@ cnfobjType2str(enum cnfobjType ot) case CNFOBJ_MODULE: return "module"; break; + case CNFOBJ_TPL: + return "template"; + break; + case CNFOBJ_PROPERTY: + return "property"; + break; + case CNFOBJ_CONSTANT: + return "constant"; + break; default:return "error: invalid cnfobjType"; } } @@ -63,6 +72,12 @@ struct var { struct cnfobj { enum cnfobjType objType; struct nvlst *nvlst; + struct objlst *subobjs; +}; + +struct objlst { + struct objlst *next; + struct cnfobj *obj; }; struct nvlst { @@ -221,6 +236,9 @@ struct cnfparamvals { /* the values we obtained for param descr. */ int cnfParseBuffer(char *buf, unsigned lenBuf); void readConfFile(FILE *fp, es_str_t **str); +struct objlst* objlstNew(struct cnfobj *obj); +void objlstDestruct(struct objlst *lst); +void objlstPrint(struct objlst *lst); struct nvlst* nvlstNew(es_str_t *name, es_str_t *value); void nvlstDestruct(struct nvlst *lst); void nvlstPrint(struct nvlst *lst); |