summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-12-22 17:38:04 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-12-22 17:38:04 +0000
commitcb4ebecb2f29c278af71414a0dc2aa28f39f8072 (patch)
treea0d2d862a9e0bf54b0885fb9c406eef002eab5ae /template.h
parente3a271c8167affd9a1d6b3cea2a6999832608019 (diff)
downloadrsyslog-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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/template.h b/template.h
index 8c89eafe..8fde34a9 100644
--- a/template.h
+++ b/template.h
@@ -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! */