summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-protocol.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-01-31 03:49:42 +0000
committerHavoc Pennington <hp@redhat.com>2003-01-31 03:49:42 +0000
commit482dab2076282ef1195564fa60dd25c1ffb77682 (patch)
treea26189a71772c8a49ad9a5851ed0e0dba3765dea /dbus/dbus-protocol.h
parentaf4ef42fa5c2f51e2cac37e196f8f4426b2ba0db (diff)
2003-01-31 Havoc Pennington <hp@pobox.com>
* doc/dbus-specification.sgml: fully specify the header. Add flags and major protocol version, and change header/body len to unsigned. * dbus/dbus-message-builder.c (append_saved_length): append length as uint32 * dbus/dbus-message.c (dbus_message_create_header): change header length and body length to unsigned. Add the new fields from the spec (_dbus_message_loader_return_buffer): unsigned header/body len
Diffstat (limited to 'dbus/dbus-protocol.h')
-rw-r--r--dbus/dbus-protocol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h
index 774ccf2c..0df6c2e9 100644
--- a/dbus/dbus-protocol.h
+++ b/dbus/dbus-protocol.h
@@ -36,6 +36,9 @@ extern "C" {
#define DBUS_LITTLE_ENDIAN ('l') /* LSB first */
#define DBUS_BIG_ENDIAN ('B') /* MSB first */
+/* Protocol version */
+#define DBUS_MAJOR_PROTOCOL_VERSION 0
+
/* Data types */
#define DBUS_TYPE_INVALID 0
#define DBUS_TYPE_NIL 1