From 62e465339a306fa564b69935da494dad6e1b474a Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 17 Jan 2005 19:49:52 +0000 Subject: 2005-01-17 Havoc Pennington * 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. --- dbus/dbus-types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dbus/dbus-types.h') 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 -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. */ /** -- cgit