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 | |
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')
-rw-r--r-- | runtime/msg.h | 6 | ||||
-rw-r--r-- | runtime/rsyslog.h | 1 |
2 files changed, 7 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 ------------------------------ */ diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index e62ba867..51e06000 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -416,6 +416,7 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth RS_RET_CA_CERT_MISSING = -2329,/**< a CA cert is missing where one is required (e.g. TLS) */ RS_RET_CERT_MISSING = -2330,/**< a cert is missing where one is required (e.g. TLS) */ RS_RET_CERTKEY_MISSING = -2331,/**< a cert (private) key is missing where one is required (e.g. TLS) */ + RS_RET_STRUC_DATA_INVLD = -2349,/**< structured data is malformed */ /* RainerScript error messages (range 1000.. 1999) */ RS_RET_SYSVAR_NOT_FOUND = 1001, /**< system variable could not be found (maybe misspelled) */ |