summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2004-11-23 17:10:55 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2004-11-23 17:10:55 +0000
commitfb3b06185460107ac5720b8d2b79114293cbce19 (patch)
treeda441112f7b0d9e67dac96a00bbea0748c705ce7 /template.h
parentfc45231d62fdb3b75d2466d8b3b8135e17252abe (diff)
downloadrsyslog-fb3b06185460107ac5720b8d2b79114293cbce19.tar.gz
rsyslog-fb3b06185460107ac5720b8d2b79114293cbce19.tar.xz
rsyslog-fb3b06185460107ac5720b8d2b79114293cbce19.zip
everything in place now to support writing to SQL
Diffstat (limited to 'template.h')
-rw-r--r--template.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/template.h b/template.h
index 52869761..5f09dd8d 100644
--- a/template.h
+++ b/template.h
@@ -18,6 +18,8 @@ struct template {
};
enum EntryTypes { UNDEFINED = 0, CONSTANT = 1, FIELD = 2 };
+enum tplFormatTypes { tplFmtDefault = 0, tplFmtMySQLDate = 1 };
+enum tplFormatCaseConvTypes { tplCaseConvNo = 0, tplCaseConvUpper = 1, tplCaseConvLower = 2 };
/* a specific parse entry */
struct templateEntry {
@@ -30,6 +32,12 @@ struct templateEntry {
} constant;
struct {
char *pPropRepl; /* pointer to property replacer string */
+ unsigned iFromPos; /* for partial strings only chars from this position ... */
+ unsigned iToPos; /* up to that one... */
+ enum tplFormatTypes eDateFormat;
+ enum tplFormatCaseConvTypes eCaseConv;
+ struct {
+ } options; /* options as bit fields */
} field;
} data;
};