summaryrefslogtreecommitdiffstats
path: root/tools/dbus-print-message.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-06-19 22:22:37 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-06-19 22:22:37 +0000
commite94493fc116955bbf72a8896c48f2c119efacf7f (patch)
tree857c7b46c942110403bae778adc46dfc3ecb35fc /tools/dbus-print-message.c
parent9902499b56c72141ae51cb55b958cab6b3a0cba0 (diff)
2003-06-19 Philip Blundell <philb@gnu.org>
* tools/dbus-print-message.c (print_message): Handle BOOLEAN. * tools/dbus-send.c: Accept both --system and --session. * tools/dbus-monitor.c: Same here.
Diffstat (limited to 'tools/dbus-print-message.c')
-rw-r--r--tools/dbus-print-message.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c
index fcf22b74..bb380ce5 100644
--- a/tools/dbus-print-message.c
+++ b/tools/dbus-print-message.c
@@ -43,6 +43,7 @@ print_message (DBusMessage *message)
dbus_int32_t int32;
double d;
unsigned char byte;
+ dbus_bool_t boolean;
if (type == DBUS_TYPE_INVALID)
break;
@@ -74,6 +75,11 @@ print_message (DBusMessage *message)
printf ("byte:%d\n", byte);
break;
+ case DBUS_TYPE_BOOLEAN:
+ boolean = dbus_message_iter_get_boolean (&iter);
+ printf ("boolean:%s\n", boolean ? "true" : "false");
+ break;
+
default:
printf ("(unknown arg type %d)\n", type);
break;