diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-12 18:52:32 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-12 18:52:32 +0200 |
commit | c8324b3460a85d57ca1bcfa481168d566069a0d1 (patch) | |
tree | 38c6b1f6e2975923ffb56328ee9deba578bf8904 /grammar/rainerscript.h | |
parent | 6dd21d2d633f5cc33bfcc4c101def87e14555d99 (diff) | |
download | rsyslog-c8324b3460a85d57ca1bcfa481168d566069a0d1.tar.gz rsyslog-c8324b3460a85d57ca1bcfa481168d566069a0d1.tar.xz rsyslog-c8324b3460a85d57ca1bcfa481168d566069a0d1.zip |
milestone: regex is compiled from script based filter
Diffstat (limited to 'grammar/rainerscript.h')
-rw-r--r-- | grammar/rainerscript.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grammar/rainerscript.h b/grammar/rainerscript.h index 07e6af0b..b8d6e772 100644 --- a/grammar/rainerscript.h +++ b/grammar/rainerscript.h @@ -172,6 +172,7 @@ struct cnffunc { es_str_t *fname; unsigned short nParams; enum cnffuncid fID; /* function ID for built-ins, 0 means use name */ + void *funcdata; /* global data for function-specific use (e.g. compiled regex) */ struct cnfexpr *expr[]; }; @@ -250,6 +251,7 @@ void cnfparamsPrint(struct cnfparamblk *params, struct cnfparamvals *vals); void varDelete(struct var *v); void cnfparamvalsDestruct(struct cnfparamvals *paramvals, struct cnfparamblk *blk); void cnfcfsyslinelstDestruct(struct cnfcfsyslinelst *cfslst); +rsRetVal initRainerscript(void); /* debug helper */ void cstrPrint(char *text, es_str_t *estr); |