diff options
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) */ |