summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
diff options
context:
space:
mode:
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 ------------------------------ */