diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-12-22 17:38:04 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-12-22 17:38:04 +0000 |
commit | cb4ebecb2f29c278af71414a0dc2aa28f39f8072 (patch) | |
tree | a0d2d862a9e0bf54b0885fb9c406eef002eab5ae /template.h | |
parent | e3a271c8167affd9a1d6b3cea2a6999832608019 (diff) | |
download | rsyslog-cb4ebecb2f29c278af71414a0dc2aa28f39f8072.tar.gz rsyslog-cb4ebecb2f29c278af71414a0dc2aa28f39f8072.tar.xz rsyslog-cb4ebecb2f29c278af71414a0dc2aa28f39f8072.zip |
added support for field-based text extraction in the property replacer.
This is untested so far (the evening came quicker than anticipated ;))
Diffstat (limited to 'template.h')
-rw-r--r-- | template.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -44,10 +44,11 @@ struct templateEntry { char *pPropRepl; /* pointer to property replacer string */ unsigned iFromPos; /* for partial strings only chars from this position ... */ unsigned iToPos; /* up to that one... */ -#ifdef FEATURE_REGEXP
- regex_t re; /* APR: this is the regular expression */
- unsigned has_regex;
-#endif
+#ifdef FEATURE_REGEXP + regex_t re; /* APR: this is the regular expression */ + unsigned has_regex; +#endif + unsigned has_fields; /* support for field-couting */ enum tplFormatTypes eDateFormat; enum tplFormatCaseConvTypes eCaseConv; struct { /* bit fields! */ |