summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-09-23 16:10:12 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-09-23 16:10:12 +0200
commit593c8e41d156da2a26c209efd8da452874b73b4c (patch)
tree72268d733dbf1732ffe8cb2538b0ae0479295fc7 /runtime/msg.h
parent90e1478f11b7a9d253899104b20900bd999970f1 (diff)
downloadrsyslog-593c8e41d156da2a26c209efd8da452874b73b4c.tar.gz
rsyslog-593c8e41d156da2a26c209efd8da452874b73b4c.tar.bz2
rsyslog-593c8e41d156da2a26c209efd8da452874b73b4c.zip
milestone: mmpstrucdata parses STRUCTURED-DATA (but does not yet store it)
Diffstat (limited to 'runtime/msg.h')
-rw-r--r--runtime/msg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/msg.h b/runtime/msg.h
index 5254f785..d912a25d 100644
--- a/runtime/msg.h
+++ b/runtime/msg.h
@@ -225,6 +225,12 @@ msgGetProtocolVersion(msg_t *pM)
return(pM->iProtocolVersion);
}
+/* returns non-zero if the message has structured data, 0 otherwise */
+static inline sbool
+MsgHasStructuredData(msg_t *pM)
+{
+ return (pM->pCSStrucData == NULL) ? 0 : 1;
+}
/* ------------------------------ some inline functions ------------------------------ */