summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-types.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-01-17 19:49:52 +0000
committerHavoc Pennington <hp@redhat.com>2005-01-17 19:49:52 +0000
commit62e465339a306fa564b69935da494dad6e1b474a (patch)
tree0c75e656937e148983dbf3ea313b0bb9efb9f6c6 /dbus/dbus-types.h
parent7bf62e31a3c820852271768fafc04ba95c31a19f (diff)
2005-01-17 Havoc Pennington <hp@redhat.com>
* dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits * Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead of an 8-bit type. Now dbus_bool_t is the type to use whenever you are marshaling/unmarshaling a boolean.
Diffstat (limited to 'dbus/dbus-types.h')
-rw-r--r--dbus/dbus-types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-types.h b/dbus/dbus-types.h
index 9f41c3c3..0bbc9295 100644
--- a/dbus/dbus-types.h
+++ b/dbus/dbus-types.h
@@ -29,12 +29,13 @@
#include <stddef.h>
-typedef unsigned int dbus_bool_t;
typedef unsigned short dbus_uint16_t;
typedef short dbus_int16_t;
typedef unsigned int dbus_uint32_t;
typedef int dbus_int32_t;
typedef dbus_uint32_t dbus_unichar_t;
+/* boolean size must be fixed at 4 bytes due to wire protocol! */
+typedef dbus_uint32_t dbus_bool_t;
/* Normally docs are in .c files, but there isn't a .c file for this. */
/**