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