summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-09-13 13:57:28 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-09-13 13:57:28 +0000
commita1b8bbd8a22702232d4fe23ea7cf7d93bcea1daa (patch)
tree6d320ec927c274f16892e78f4eddbd3ab3e6157e /template.h
parent1edd0c29aae07ca22f59a460bfa7b804e7570f91 (diff)
downloadrsyslog-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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/template.h b/template.h
index ff714ae4..6e16f25a 100644
--- a/template.h
+++ b/template.h
@@ -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! */