diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-09-13 13:57:28 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-09-13 13:57:28 +0000 |
commit | a1b8bbd8a22702232d4fe23ea7cf7d93bcea1daa (patch) | |
tree | 6d320ec927c274f16892e78f4eddbd3ab3e6157e /template.h | |
parent | 1edd0c29aae07ca22f59a460bfa7b804e7570f91 (diff) | |
download | rsyslog-a1b8bbd8a22702232d4fe23ea7cf7d93bcea1daa.tar.gz rsyslog-a1b8bbd8a22702232d4fe23ea7cf7d93bcea1daa.tar.xz rsyslog-a1b8bbd8a22702232d4fe23ea7cf7d93bcea1daa.zip |
merged Andres Riancho's regex extensions into the code (hopefully
correctly)
Diffstat (limited to 'template.h')
-rw-r--r-- | template.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3,6 +3,12 @@ * This code is placed under the GPL. * begun 2004-11-17 rgerhards */ + +#ifdef FEATURE_REGEXP
+/* Include regular expressions */
+#include <regex.h> +#endif + struct template { struct template *pNext; char *pszName; @@ -35,6 +41,10 @@ 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
enum tplFormatTypes eDateFormat; enum tplFormatCaseConvTypes eCaseConv; struct { /* bit fields! */ |