diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-09-26 23:30:26 +0900 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-09-26 23:30:26 +0900 |
commit | 16ded192acea43a1615645ba2e5e4e92b0896c2b (patch) | |
tree | 6e6158553b5faad3515ed57cf714df55a1529cdc /tools/huawei-audio.c | |
parent | 5879048ee49a49f3b418ef65cd6bb56d3cab411c (diff) | |
download | ofono-16ded192acea43a1615645ba2e5e4e92b0896c2b.tar.bz2 |
tools: Decode the Multiparty property in Huawei audio utility
Diffstat (limited to 'tools/huawei-audio.c')
-rw-r--r-- | tools/huawei-audio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/huawei-audio.c b/tools/huawei-audio.c index 77938664..7f7b0612 100644 --- a/tools/huawei-audio.c +++ b/tools/huawei-audio.c @@ -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 : "..."); } |