dbus/tools dbus-print-message.c,1.9,1.10
Ross Burton
ross at kemper.freedesktop.org
Fri Mar 10 09:29:50 PST 2006
- Previous message: dbus/dbus dbus-hash.c, 1.19, 1.20 dbus-hash.h, 1.14,
1.15 dbus-userdb.c, 1.18, 1.19 dbus-userdb.h, 1.10, 1.11
- Next message: dbus ChangeLog,1.981,1.982
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/dbus/dbus/tools
In directory kemper:/tmp/cvs-serv23049/tools
Modified Files:
dbus-print-message.c
Log Message:
2006-03-10 Ross Burton <ross at openedhand.com>
* tools/dbus-print-message.c:
Add support for object paths and signatures.
Index: dbus-print-message.c
===================================================================
RCS file: /cvs/dbus/dbus/tools/dbus-print-message.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- dbus-print-message.c 26 Aug 2005 15:41:31 -0000 1.9
+++ dbus-print-message.c 10 Mar 2006 17:29:48 -0000 1.10
@@ -61,7 +61,7 @@
switch (type)
{
case DBUS_TYPE_STRING:
- dbus_message_iter_get_basic (iter, &str);
+ dbus_message_iter_get_basic (iter, &str);
if (!literal)
printf ("string \"");
printf ("%s", str);
@@ -69,13 +69,31 @@
printf ("\"\n");
break;
+ case DBUS_TYPE_OBJECT_PATH:
+ dbus_message_iter_get_basic (iter, &str);
+ if (!literal)
+ printf ("object path \"");
+ printf ("%s", str);
+ if (!literal)
+ printf ("\"\n");
+ break;
+
+ case DBUS_TYPE_SIGNATURE:
+ dbus_message_iter_get_basic (iter, &str);
+ if (!literal)
+ printf ("signature \"");
+ printf ("%s", str);
+ if (!literal)
+ printf ("\"\n");
+ break;
+
case DBUS_TYPE_INT32:
- dbus_message_iter_get_basic (iter, &int32);
+ dbus_message_iter_get_basic (iter, &int32);
printf ("int32 %d\n", int32);
break;
case DBUS_TYPE_UINT32:
- dbus_message_iter_get_basic (iter, &uint32);
+ dbus_message_iter_get_basic (iter, &uint32);
printf ("uint32 %u\n", uint32);
break;
- Previous message: dbus/dbus dbus-hash.c, 1.19, 1.20 dbus-hash.h, 1.14,
1.15 dbus-userdb.c, 1.18, 1.19 dbus-userdb.h, 1.10, 1.11
- Next message: dbus ChangeLog,1.981,1.982
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dbus-commit
mailing list