summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-17 08:00:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-17 08:00:34 +0200
commit71f602c4e97a67097ede995642a5cb09c0ceca07 (patch)
treef37529e532f060b531ce1706d8be1c130a0189f2 /runtime/msg.h
parent8fe7507de1d9f800fedb82a2cf2e1f443db940f7 (diff)
downloadrsyslog-71f602c4e97a67097ede995642a5cb09c0ceca07.tar.gz
rsyslog-71f602c4e97a67097ede995642a5cb09c0ceca07.tar.bz2
rsyslog-71f602c4e97a67097ede995642a5cb09c0ceca07.zip
new ruleengine: Implent "unset" statement
Diffstat (limited to 'runtime/msg.h')
-rw-r--r--runtime/msg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/msg.h b/runtime/msg.h
index 857eb673..477d1f1a 100644
--- a/runtime/msg.h
+++ b/runtime/msg.h
@@ -202,6 +202,13 @@ uchar *getRcvFrom(msg_t *pM);
rsRetVal propNameToID(cstr_t *pCSPropName, propid_t *pPropID);
uchar *propIDToName(propid_t propID);
rsRetVal msgGetCEEPropJSON(msg_t *pM, es_str_t *propName, struct json_object **pjson);
+rsRetVal msgSetJSONFromVar(msg_t *pMsg, uchar *varname, struct var *var);
+rsRetVal msgDelJSON(msg_t *pMsg, uchar *varname);
+
+static inline rsRetVal
+msgUnsetJSON(msg_t *pMsg, uchar *varname) {
+ return msgDelJSON(pMsg, varname+1);
+}
/* The MsgPrepareEnqueue() function is a macro for performance reasons.