tools: Decode the Multiparty property in Huawei audio utility

This commit is contained in:
Marcel Holtmann 2010-09-26 23:30:26 +09:00
parent 5879048ee4
commit 16ded192ac
1 changed files with 7 additions and 0 deletions

View File

@ -186,6 +186,13 @@ static void call_set(struct call_data *call, const char *key,
if (dbus_message_iter_get_arg_type(iter) == DBUS_TYPE_STRING)
dbus_message_iter_get_basic(iter, &str);
if (dbus_message_iter_get_arg_type(iter) == DBUS_TYPE_BOOLEAN) {
dbus_bool_t val;
dbus_message_iter_get_basic(iter, &val);
str = (val == TRUE) ? "yes" : "no";
}
g_print("updating call (%s) [ %s = %s ]\n", call->path,
key, str ? str : "...");
}