diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-25 19:08:07 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-25 19:08:07 +0200 |
commit | 00c4f69c559e5ba036e20a095843a1ca6eba57c8 (patch) | |
tree | dfabee1acb22794801a537d4b277689bb22514e8 /template.h | |
parent | a36b7131ab79204f43c400de7b5663613af62cc6 (diff) | |
download | rsyslog-00c4f69c559e5ba036e20a095843a1ca6eba57c8.tar.gz rsyslog-00c4f69c559e5ba036e20a095843a1ca6eba57c8.tar.xz rsyslog-00c4f69c559e5ba036e20a095843a1ca6eba57c8.zip |
milestone: LIST-type templates support full option set
Diffstat (limited to 'template.h')
-rw-r--r-- | template.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -58,6 +58,9 @@ enum tplFormatTypes { tplFmtDefault = 0, tplFmtMySQLDate = 1, tplFmtRFC3164Date = 2, tplFmtRFC3339Date = 3, tplFmtPgSQLDate = 4, tplFmtSecFrac = 5, tplFmtRFC3164BuggyDate = 6, tplFmtUnixDate}; enum tplFormatCaseConvTypes { tplCaseConvNo = 0, tplCaseConvUpper = 1, tplCaseConvLower = 2 }; +enum tplRegexType { TPL_REGEX_BRE = 0, /* posix BRE */ + TPL_REGEX_ERE = 1 /* posix ERE */ + }; #include "msg.h" @@ -80,11 +83,8 @@ struct templateEntry { short has_regex; short iMatchToUse;/* which match should be obtained (10 max) */ short iSubMatchToUse;/* which submatch should be obtained (10 max) */ - enum { - TPL_REGEX_BRE = 0, /* posix BRE */ - TPL_REGEX_ERE = 1 /* posix ERE */ - } typeRegex; - enum { + enum tplRegexType typeRegex; + enum tlpRegexNoMatchType { TPL_REGEX_NOMATCH_USE_DFLTSTR = 0, /* use the (old style) default "**NO MATCH**" string */ TPL_REGEX_NOMATCH_USE_BLANK = 1, /* use a blank string */ TPL_REGEX_NOMATCH_USE_WHOLE_FIELD = 2, /* use the full field contents that we were searching in*/ |