summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-22 16:03:45 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-22 16:03:45 +0000
commit6b24fa20d4da8a57a2e34b1ca0c3159b93157e1e (patch)
treeb77862ccfb9c4b8a4987da934ccc3ef290e37afd /template.h
parent70c56633497562c8c594cab8f2aa55dd1d7ca5fa (diff)
downloadrsyslog-6b24fa20d4da8a57a2e34b1ca0c3159b93157e1e.tar.gz
rsyslog-6b24fa20d4da8a57a2e34b1ca0c3159b93157e1e.tar.xz
rsyslog-6b24fa20d4da8a57a2e34b1ca0c3159b93157e1e.zip
moved file write output module to own set of code files
Diffstat (limited to 'template.h')
-rw-r--r--template.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/template.h b/template.h
index 3667173b..d749595a 100644
--- a/template.h
+++ b/template.h
@@ -7,6 +7,7 @@
#ifndef TEMPLATE_H_INCLUDED
#define TEMPLATE_H_INCLUDED 1
+
#ifdef FEATURE_REGEXP
/* Include regular expressions */
#include <regex.h>
@@ -34,6 +35,8 @@ enum tplFormatTypes { tplFmtDefault = 0, tplFmtMySQLDate = 1,
tplFmtRFC3164Date = 2, tplFmtRFC3339Date = 3 };
enum tplFormatCaseConvTypes { tplCaseConvNo = 0, tplCaseConvUpper = 1, tplCaseConvLower = 2 };
+#include "msg.h"
+
/* a specific parse entry */
struct templateEntry {
struct templateEntry *pNext;
@@ -73,6 +76,8 @@ void tplDeleteAll(void);
void tplDeleteNew(void);
void tplPrintList(void);
void tplLastStaticInit(struct template *tpl);
+uchar *tplToString(struct template *pTpl, msg_t *pMsg);
+void doSQLEscape(char **pp, size_t *pLen, unsigned short *pbMustBeFreed, int escapeMode);
#endif /* #ifndef TEMPLATE_H_INCLUDED */
/*