diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-17 09:34:01 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-17 09:34:01 +0200 |
commit | b3eb2f9b81a3cfc2d179aea364501fca4134e480 (patch) | |
tree | 082f9951df5c113d6495c029e00dbb42d441365c /grammar/rainerscript.h | |
parent | 92564dc5560aff06062a612058865f2a8a8bdff3 (diff) | |
parent | 5ab936a92d636390026d466350464ec4182075ac (diff) | |
download | rsyslog-b3eb2f9b81a3cfc2d179aea364501fca4134e480.tar.gz rsyslog-b3eb2f9b81a3cfc2d179aea364501fca4134e480.tar.bz2 rsyslog-b3eb2f9b81a3cfc2d179aea364501fca4134e480.zip |
Merge branch 'master-newruleset'
Diffstat (limited to 'grammar/rainerscript.h')
-rw-r--r-- | grammar/rainerscript.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/grammar/rainerscript.h b/grammar/rainerscript.h index 7637ae48..51d96e51 100644 --- a/grammar/rainerscript.h +++ b/grammar/rainerscript.h @@ -116,6 +116,8 @@ struct nvlst { #define S_IF 4003 #define S_ACT 4004 #define S_NOP 4005 /* usually used to disable some statement */ +#define S_SET 4006 +#define S_UNSET 4007 enum cnfFiltType { CNFFILT_NONE, CNFFILT_PRI, CNFFILT_PROP, CNFFILT_SCRIPT }; static inline char* @@ -146,6 +148,13 @@ struct cnfstmt { struct cnfstmt *t_else; } s_if; struct { + uchar *varname; + struct cnfexpr *expr; + } s_set; + struct { + uchar *varname; + } s_unset; + struct { uchar pmask[LOG_NFACILITIES+1]; /* priority mask */ struct cnfstmt *t_then; } s_prifilt; @@ -288,6 +297,8 @@ struct cnfstmt * cnfstmtNewPRIFILT(char *prifilt, struct cnfstmt *t_then); struct cnfstmt * cnfstmtNewPROPFILT(char *propfilt, struct cnfstmt *t_then); struct cnfstmt * cnfstmtNewAct(struct nvlst *lst); struct cnfstmt * cnfstmtNewLegaAct(char *actline); +struct cnfstmt * cnfstmtNewSet(char *var, struct cnfexpr *expr); +struct cnfstmt * cnfstmtNewUnset(char *var); void cnfstmtDestruct(struct cnfstmt *root); char* getFIOPName(unsigned iFIOP); rsRetVal initRainerscript(void); |