summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-common.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-03-21 20:25:22 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-03-21 20:25:22 +0000
commitcf9b9a475788329f44c7e521d036ac647b56b8cb (patch)
tree11ceac8442993843587f51b7358dad04929ff1cb /hcid/dbus-common.c
parentbdbad0d759c9f5c8092afd2cac4e1a76722b4517 (diff)
Implement full Service.GetInfo() support
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r--hcid/dbus-common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c
index 3e059158..3f08e5cd 100644
--- a/hcid/dbus-common.c
+++ b/hcid/dbus-common.c
@@ -88,6 +88,9 @@ void append_dict_entry(DBusMessageIter *dict, const char *key,
case DBUS_TYPE_UINT32:
sig = DBUS_TYPE_UINT32_AS_STRING;
break;
+ case DBUS_TYPE_BOOLEAN:
+ sig = DBUS_TYPE_BOOLEAN_AS_STRING;
+ break;
default:
sig = DBUS_TYPE_VARIANT_AS_STRING;
break;
@@ -95,7 +98,7 @@ void append_dict_entry(DBusMessageIter *dict, const char *key,
dbus_message_iter_open_container(&entry, DBUS_TYPE_VARIANT, sig, &value);
- dbus_message_iter_append_basic(&value, type, &val);
+ dbus_message_iter_append_basic(&value, type, val);
dbus_message_iter_close_container(&entry, &value);