summaryrefslogtreecommitdiff
path: root/docs/examples/glib_stream_tube/accept-tube.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_stream_tube/accept-tube.c
parent8c9f2d31a092269c195c05ecca743311fcdd58d2 (diff)
Port GValueArray unpacking to tp_value_array_unpack
Diffstat (limited to 'docs/examples/glib_stream_tube/accept-tube.c')
-rw-r--r--docs/examples/glib_stream_tube/accept-tube.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/examples/glib_stream_tube/accept-tube.c b/docs/examples/glib_stream_tube/accept-tube.c
index 9e94d88..5240ca3 100644
--- a/docs/examples/glib_stream_tube/accept-tube.c
+++ b/docs/examples/glib_stream_tube/accept-tube.c
@@ -114,10 +114,12 @@ new_channels_cb (TpConnection *conn,
for (i = 0; i < channels->len; i++)
{
GValueArray *channel = g_ptr_array_index (channels, i);
- char *object_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 *object_path;
+ GHashTable *map;
+
+ tp_value_array_unpack (channel, 2,
+ &object_path,
+ &map);
const char *type = tp_asv_get_string (map,
TP_IFACE_CHANNEL ".ChannelType");