diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-07 14:31:34 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-28 10:15:27 +0200 |
commit | 74695106fbd97f152395529cc98f79f628574aa7 (patch) | |
tree | eee62b3690e4be7ce9c5933854d638bd79ec54b0 /examples/client | |
parent | f349f6a5b36dfc503b5638f13d18544b023f9779 (diff) |
offerer: display when tube is invalidated
Diffstat (limited to 'examples/client')
-rw-r--r-- | examples/client/stream-tubes/offerer.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -56,6 +56,16 @@ _tube_offered (GObject *tube, } 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, gpointer user_data) @@ -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); } |