diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-23 16:10:12 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-23 16:10:12 +0200 |
commit | 593c8e41d156da2a26c209efd8da452874b73b4c (patch) | |
tree | 72268d733dbf1732ffe8cb2538b0ae0479295fc7 /runtime/msg.h | |
parent | 90e1478f11b7a9d253899104b20900bd999970f1 (diff) | |
download | rsyslog-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.h | 6 |
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 ------------------------------ */ |