summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-19 09:39:29 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-19 09:39:29 +0200
commite65473e9a4b04788c70bb7d9ef8f9d7dd7ecd124 (patch)
tree2783ebe1f2983311c0b85d738e093da9a2d02aff /template.h
parentde2fd07836accab563ecbf0405749b6bef9e76b4 (diff)
parentb151584d0929759284c0fb0399709e5ca0e29d60 (diff)
downloadrsyslog-e65473e9a4b04788c70bb7d9ef8f9d7dd7ecd124.tar.gz
rsyslog-e65473e9a4b04788c70bb7d9ef8f9d7dd7ecd124.tar.bz2
rsyslog-e65473e9a4b04788c70bb7d9ef8f9d7dd7ecd124.zip
Merge branch 'master' into master-ratelimit
Conflicts: ChangeLog configure.ac doc/manual.html
Diffstat (limited to 'template.h')
-rw-r--r--template.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/template.h b/template.h
index 5a35d274..018e2f52 100644
--- a/template.h
+++ b/template.h
@@ -72,6 +72,7 @@ struct templateEntry {
enum EntryTypes eEntryType;
uchar *fieldName; /**< field name to be used for structured output */
int lenFieldName;
+ sbool bComplexProcessing; /**< set if complex processing (options, etc) is required */
union {
struct {
uchar *pConstant; /* pointer to constant value */
@@ -142,14 +143,15 @@ void tplDeleteNew(rsconf_t *conf);
void tplPrintList(rsconf_t *conf);
void tplLastStaticInit(rsconf_t *conf, struct template *tpl);
rsRetVal ExtendBuf(uchar **pBuf, size_t *pLenBuf, size_t iMinSize);
+int tplRequiresDateCall(struct template *pTpl);
/* note: if a compiler warning for undefined type tells you to look at this
* code line below, the actual cause is that you currently MUST include template.h
* BEFORE msg.h, even if your code file does not actually need it.
* rgerhards, 2007-08-06
*/
-rsRetVal tplToArray(struct template *pTpl, msg_t *pMsg, uchar*** ppArr);
-rsRetVal tplToString(struct template *pTpl, msg_t *pMsg, uchar** ppSz, size_t *);
-rsRetVal tplToJSON(struct template *pTpl, msg_t *pMsg, struct json_object **);
+rsRetVal tplToArray(struct template *pTpl, msg_t *pMsg, uchar*** ppArr, struct syslogTime *ttNow);
+rsRetVal tplToString(struct template *pTpl, msg_t *pMsg, uchar** ppSz, size_t *, struct syslogTime *ttNow);
+rsRetVal tplToJSON(struct template *pTpl, msg_t *pMsg, struct json_object **, struct syslogTime *ttNow);
rsRetVal doEscape(uchar **pp, rs_size_t *pLen, unsigned short *pbMustBeFreed, int escapeMode);
rsRetVal templateInit();