Add MsgList_Present (which matches Msg_Present) as a convenience for
ASSERTs.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
const char *MsgList_GetMsgID(const MsgList *messages);
+Bool MsgList_Present(const MsgList *messages);
+
#endif // ifndef _MSGLIST_H_
free(formatted);
}
}
+
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * MsgList_Present --
+ *
+ * Tests if the MsgList is empty.
+ *
+ * Results:
+ * TRUE if there are appended messages; FALSE otherwise.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+Bool
+MsgList_Present(const MsgList *messages) // IN:
+{
+ return messages != NULL;
+}