diff options
Diffstat (limited to 'tools/dbus-print-message.c')
-rw-r--r-- | tools/dbus-print-message.c | 6 |
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; |