summaryrefslogtreecommitdiff
path: root/examples/client
diff options
context:
space:
mode:
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;