summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-23 15:14:22 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-28 10:15:33 +0200
commitbec68d9c243dd5250a4ebe08ee0bb34219cbbff1 (patch)
tree1019e9850856200c0704bd2726e3e98acc255d47 /examples
parentb5ce5d10a8c402ffdf2c69e66d5013731939da26 (diff)
downloadtelepathy-glib-bec68d9c243dd5250a4ebe08ee0bb34219cbbff1.tar.gz
rename TpStreamTube to TpStreamTubeChannel
Diffstat (limited to 'examples')
-rw-r--r--examples/client/stream-tubes/accepter.c10
-rw-r--r--examples/client/stream-tubes/offerer.c12
2 files changed, 11 insertions, 11 deletions
diff --git a/examples/client/stream-tubes/accepter.c b/examples/client/stream-tubes/accepter.c
index 9598bde3b..10f268bfd 100644
--- a/examples/client/stream-tubes/accepter.c
+++ b/examples/client/stream-tubes/accepter.c
@@ -15,7 +15,7 @@ _tube_accepted (GObject *tube,
char buf[128] = { 0, };
GError *error = NULL;
- iostream = tp_stream_tube_accept_finish (TP_STREAM_TUBE (tube), res, &error);
+ iostream = tp_stream_tube_channel_accept_finish (TP_STREAM_TUBE_CHANNEL (tube), res, &error);
if (error != NULL)
{
@@ -51,7 +51,7 @@ _tube_accepted (GObject *tube,
}
static void
-tube_invalidated_cb (TpStreamTube *tube,
+tube_invalidated_cb (TpStreamTubeChannel *tube,
guint domain,
gint code,
gchar *message,
@@ -70,7 +70,7 @@ _handle_channels (TpSimpleHandler *handler,
TpHandleChannelsContext *context,
gpointer user_data)
{
- TpStreamTube *tube;
+ TpStreamTubeChannel *tube;
gboolean delay = FALSE;
GList *l;
@@ -93,7 +93,7 @@ _handle_channels (TpSimpleHandler *handler,
g_debug ("Accepting tube");
- tube = tp_stream_tube_new (tp_channel_borrow_connection (channel),
+ tube = tp_stream_tube_channel_new (tp_channel_borrow_connection (channel),
tp_proxy_get_object_path (channel),
tp_channel_borrow_immutable_properties (channel),
&error);
@@ -102,7 +102,7 @@ _handle_channels (TpSimpleHandler *handler,
g_signal_connect (tube, "invalidated",
G_CALLBACK (tube_invalidated_cb), NULL);
- tp_stream_tube_accept_async (tube, _tube_accepted, context);
+ tp_stream_tube_channel_accept_async (tube, _tube_accepted, context);
delay = TRUE;
}
diff --git a/examples/client/stream-tubes/offerer.c b/examples/client/stream-tubes/offerer.c
index 03a2c6c1c..af31a22e8 100644
--- a/examples/client/stream-tubes/offerer.c
+++ b/examples/client/stream-tubes/offerer.c
@@ -4,7 +4,7 @@ static GMainLoop *loop = NULL;
static void
-_incoming_iostream (TpStreamTube *tube,
+_incoming_iostream (TpStreamTubeChannel *tube,
TpContact *contact,
GIOStream *iostream,
gpointer user_data)
@@ -44,7 +44,7 @@ _tube_offered (GObject *tube,
{
GError *error = NULL;
- if (!tp_stream_tube_offer_finish (TP_STREAM_TUBE (tube), res, &error))
+ if (!tp_stream_tube_channel_offer_finish (TP_STREAM_TUBE_CHANNEL (tube), res, &error))
{
g_debug ("Failed to offer tube: %s", error->message);
@@ -56,7 +56,7 @@ _tube_offered (GObject *tube,
}
static void
-tube_invalidated_cb (TpStreamTube *tube,
+tube_invalidated_cb (TpStreamTubeChannel *tube,
guint domain,
gint code,
gchar *message,
@@ -72,7 +72,7 @@ _channel_created (GObject *source,
{
TpChannel *channel;
GError *error = NULL;
- TpStreamTube *tube;
+ TpStreamTubeChannel *tube;
channel = tp_account_channel_request_create_and_handle_channel_finish (
TP_ACCOUNT_CHANNEL_REQUEST (source), result, NULL, &error);
@@ -86,7 +86,7 @@ _channel_created (GObject *source,
g_debug ("Channel created: %s", tp_proxy_get_object_path (channel));
- tube = tp_stream_tube_new (tp_channel_borrow_connection (channel),
+ tube = tp_stream_tube_channel_new (tp_channel_borrow_connection (channel),
tp_proxy_get_object_path (channel),
tp_channel_borrow_immutable_properties (channel),
&error);
@@ -99,7 +99,7 @@ _channel_created (GObject *source,
g_signal_connect (tube, "invalidated",
G_CALLBACK (tube_invalidated_cb), NULL);
- tp_stream_tube_offer_async (tube, NULL, _tube_offered, NULL);
+ tp_stream_tube_channel_offer_async (tube, NULL, _tube_offered, NULL);
}
int