diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-10 18:41:03 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-10 18:41:03 +0200 |
commit | 9fd578a8683813fe461b0b303ad23b9ee4f56ebc (patch) | |
tree | a390976025cacbdaed5cd4e8c31d5de1d59d3e4a | |
parent | 96a6686b0b59ab99db557859fd64483de3aab8da (diff) | |
parent | 4bb35f1e94665fbc6de7348ccd619e3a34ec5f08 (diff) | |
download | rsyslog-9fd578a8683813fe461b0b303ad23b9ee4f56ebc.tar.gz rsyslog-9fd578a8683813fe461b0b303ad23b9ee4f56ebc.tar.bz2 rsyslog-9fd578a8683813fe461b0b303ad23b9ee4f56ebc.zip |
Merge branch 'v6-devel'
-rw-r--r-- | template.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,7 @@ #ifndef TEMPLATE_H_INCLUDED #define TEMPLATE_H_INCLUDED 1 +#include <json/json.h> #include <libestr.h> #include "regexp.h" #include "stringbuf.h" @@ -147,6 +148,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 tplToJSON(struct template *pTpl, msg_t *pMsg, struct json_object **); rsRetVal doEscape(uchar **pp, size_t *pLen, unsigned short *pbMustBeFreed, int escapeMode); rsRetVal templateInit(); |