From 74695106fbd97f152395529cc98f79f628574aa7 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 7 Sep 2010 14:31:34 +0200 Subject: offerer: display when tube is invalidated --- examples/client/stream-tubes/offerer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'examples/client') diff --git a/examples/client/stream-tubes/offerer.c b/examples/client/stream-tubes/offerer.c index e2450e222..03a2c6c1c 100644 --- a/examples/client/stream-tubes/offerer.c +++ b/examples/client/stream-tubes/offerer.c @@ -55,6 +55,16 @@ _tube_offered (GObject *tube, g_debug ("Tube offered"); } +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 _channel_created (GObject *source, GAsyncResult *result, @@ -86,6 +96,8 @@ _channel_created (GObject *source, g_signal_connect (tube, "incoming", G_CALLBACK (_incoming_iostream), NULL); + g_signal_connect (tube, "invalidated", + G_CALLBACK (tube_invalidated_cb), NULL); tp_stream_tube_offer_async (tube, NULL, _tube_offered, NULL); } -- cgit v1.2.3