Add a constant for the number of message types
authorWill Thompson <will.thompson@collabora.co.uk>
Wed, 29 Jul 2009 16:47:04 +0000 (17:47 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 5 Jan 2010 20:11:09 +0000 (21:11 +0100)
dbus/dbus-protocol.h

index a2284ee..17798e9 100644 (file)
@@ -239,6 +239,8 @@ extern "C" {
 /** Message type of a signal message, see dbus_message_get_type() */
 #define DBUS_MESSAGE_TYPE_SIGNAL        4
 
+#define DBUS_NUM_MESSAGE_TYPES          5
+
 /* Header flags */
 
 /** If set, this flag means that the sender of a message does not care about getting