summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-01-17 10:48:39 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-01-17 10:48:39 +0100
commit37e4aab1ecc63db2b5e72fd8a5df5e4976ae82c8 (patch)
tree9db8aec809487aebf97889b801bfeb0c477e824c /template.h
parent76c4d6b951453078ab53bf612caf0b8ec9d54bb8 (diff)
parent9911dacf59e898bae2c8c6619b85348bf54ddc23 (diff)
downloadrsyslog-37e4aab1ecc63db2b5e72fd8a5df5e4976ae82c8.tar.gz
rsyslog-37e4aab1ecc63db2b5e72fd8a5df5e4976ae82c8.tar.bz2
rsyslog-37e4aab1ecc63db2b5e72fd8a5df5e4976ae82c8.zip
Merge branch 'v5-stable-elasticsearch' into v5-devel-tmp
Conflicts: ChangeLog configure.ac doc/manual.html tools/syslogd.c
Diffstat (limited to 'template.h')
-rw-r--r--template.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/template.h b/template.h
index f7ac2e08..b5598b6d 100644
--- a/template.h
+++ b/template.h
@@ -36,9 +36,10 @@ struct template {
int tpenElements; /* number of elements in templateEntry list */
struct templateEntry *pEntryRoot;
struct templateEntry *pEntryLast;
- char optFormatForSQL; /* in text fields, 0 - do not escape,
- * 1 - escape quotes by double quotes,
- * 2 - escape "the MySQL way"
+ char optFormatEscape; /* in text fields, 0 - do not escape,
+ * 1 - escape "the MySQL way"
+ * 2 - escape quotes by double quotes,
+ * 3 - escape double quotes for JSON.
*/
/* following are options. All are 0/1 defined (either on or off).
* we use chars because they are faster than bit fields and smaller
@@ -130,7 +131,7 @@ rsRetVal ExtendBuf(uchar **pBuf, size_t *pLenBuf, size_t iMinSize);
*/
rsRetVal tplToArray(struct template *pTpl, msg_t *pMsg, uchar*** ppArr);
rsRetVal tplToString(struct template *pTpl, msg_t *pMsg, uchar** ppSz, size_t *);
-rsRetVal doSQLEscape(uchar **pp, size_t *pLen, unsigned short *pbMustBeFreed, int escapeMode);
+rsRetVal doEscape(uchar **pp, size_t *pLen, unsigned short *pbMustBeFreed, int escapeMode);
rsRetVal templateInit();