dbus/tools dbus-send.c,1.11,1.12
Havoc Pennington
hp@freedesktop.org
Mon Jan 17 11:49:54 PST 2005
Update of /cvs/dbus/dbus/tools
In directory gabe:/tmp/cvs-serv16881/tools
Modified Files:
dbus-send.c
Log Message:
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.
Index: dbus-send.c
===================================================================
RCS file: /cvs/dbus/dbus/tools/dbus-send.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- dbus-send.c 16 Jan 2005 15:51:55 -0000 1.11
+++ dbus-send.c 17 Jan 2005 19:49:52 -0000 1.12
@@ -179,6 +179,7 @@
dbus_int32_t int32;
double d;
unsigned char byte;
+ dbus_bool_t v_BOOLEAN;
type = DBUS_TYPE_INVALID;
arg = argv[i++];
@@ -240,13 +241,13 @@
case DBUS_TYPE_BOOLEAN:
if (strcmp(c, "true") == 0)
{
- byte = TRUE;
- dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &c);
+ v_BOOLEAN = TRUE;
+ dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &v_BOOLEAN);
}
else if (strcmp(c, "false") == 0)
{
- byte = FALSE;
- dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &c);
+ v_BOOLEAN = FALSE;
+ dbus_message_iter_append_basic (&iter, DBUS_TYPE_BOOLEAN, &v_BOOLEAN);
}
else
{
More information about the dbus-commit
mailing list