summaryrefslogtreecommitdiff
path: root/docs/examples/glib_mc5_dbus_tube_handler/example-handler.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2010-03-29 13:47:18 +1100
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-03-29 13:47:18 +1100
commit30816b8eeee3f5cbb78c514d3531ef3c12c1c94c (patch)
tree5bd4b7a5c4b60c11c854254ad9f7582a0673bf0e /docs/examples/glib_mc5_dbus_tube_handler/example-handler.c
parent8c9f2d31a092269c195c05ecca743311fcdd58d2 (diff)
Port GValueArray unpacking to tp_value_array_unpack
Diffstat (limited to 'docs/examples/glib_mc5_dbus_tube_handler/example-handler.c')
-rw-r--r--docs/examples/glib_mc5_dbus_tube_handler/example-handler.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/examples/glib_mc5_dbus_tube_handler/example-handler.c b/docs/examples/glib_mc5_dbus_tube_handler/example-handler.c
index cb5ad1e..d45fcf3 100644
--- a/docs/examples/glib_mc5_dbus_tube_handler/example-handler.c
+++ b/docs/examples/glib_mc5_dbus_tube_handler/example-handler.c
@@ -188,8 +188,12 @@ example_handler_handle_channels (TpSvcClientHandler *self,
{
GValueArray *channel = g_ptr_array_index (channels, i);
- char *path = g_value_get_boxed (g_value_array_get_nth (channel, 0));
- GHashTable *map = g_value_get_boxed (g_value_array_get_nth (channel, 1));
+ char *path;
+ GHashTable *map;
+
+ tp_value_array_unpack (channel, 2,
+ &path,
+ &map);
const char *type = tp_asv_get_string (map,
TP_IFACE_CHANNEL ".ChannelType");