diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-23 17:10:55 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-23 17:10:55 +0000 |
commit | fb3b06185460107ac5720b8d2b79114293cbce19 (patch) | |
tree | da441112f7b0d9e67dac96a00bbea0748c705ce7 /template.h | |
parent | fc45231d62fdb3b75d2466d8b3b8135e17252abe (diff) | |
download | rsyslog-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; }; |