summaryrefslogtreecommitdiff
path: root/examples/client
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-07 14:31:24 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-28 10:15:27 +0200
commitf349f6a5b36dfc503b5638f13d18544b023f9779 (patch)
tree646b6d5d584ba11e50e66584b07b56424574d041 /examples/client
parent4a6034b7f6cb2fcaba7885c0ae9968681da5b55c (diff)
accepter: display when tube is invalidated
Diffstat (limited to 'examples/client')
-rw-r--r--examples/client/stream-tubes/accepter.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/client/stream-tubes/accepter.c b/examples/client/stream-tubes/accepter.c
index 7e946cfdf..9598bde3b 100644
--- a/examples/client/stream-tubes/accepter.c
+++ b/examples/client/stream-tubes/accepter.c
@@ -50,6 +50,15 @@ _tube_accepted (GObject *tube,
g_main_loop_quit (loop);
}
+static void
+tube_invalidated_cb (TpStreamTube *tube,
+ guint domain,
+ gint code,
+ gchar *message,
+ gpointer user_data)
+{
+ g_debug ("Tube has been invalidated: %s", message);
+}
static void
_handle_channels (TpSimpleHandler *handler,
@@ -90,6 +99,9 @@ _handle_channels (TpSimpleHandler *handler,
&error);
g_assert_no_error (error);
+ g_signal_connect (tube, "invalidated",
+ G_CALLBACK (tube_invalidated_cb), NULL);
+
tp_stream_tube_accept_async (tube, _tube_accepted, context);
delay = TRUE;