summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/lib/telepathy-farstream-sections.txt1
-rw-r--r--telepathy-farstream/channel.c23
-rw-r--r--telepathy-farstream/channel.h4
3 files changed, 27 insertions, 1 deletions
diff --git a/doc/lib/telepathy-farstream-sections.txt b/doc/lib/telepathy-farstream-sections.txt
index 4a7c4b3..dcd9615 100644
--- a/doc/lib/telepathy-farstream-sections.txt
+++ b/doc/lib/telepathy-farstream-sections.txt
@@ -27,6 +27,7 @@ TF_IS_CONTENT_CLASS
<TITLE>TfChannel</TITLE>
TfChannel
tf_channel_new_async
+tf_channel_new_finish
tf_channel_bus_message
<SUBSECTION Private>
TfChannelPrivate
diff --git a/telepathy-farstream/channel.c b/telepathy-farstream/channel.c
index ac903c1..fb429fb 100644
--- a/telepathy-farstream/channel.c
+++ b/telepathy-farstream/channel.c
@@ -618,7 +618,7 @@ channel_invalidated (TpChannel *channel_proxy,
* Creates a new #TfChannel from an existing channel proxy, the new
* TfChannel object will be return in the async callback.
*
- * The user must call g_async_initable_new_finish() in the callback
+ * The user must call tf_channel_new_finish() in the callback
* to get the finished object.
*/
@@ -693,3 +693,24 @@ content_removed (GObject *proxy, TfContent *content, TfChannel *self)
{
g_signal_emit (self, signals[SIGNAL_CONTENT_REMOVED], 0, content);
}
+
+/**
+ * tf_channel_new_finish:
+ * @object: The #GObject
+ * @result: a #GAsyncResult
+ * @error: the location of a #GError or %NULL to ignore it
+ *
+ * Completes the construction of a TfChannel.
+ *
+ * Returns: a #TfChannel or %NULL if there was an error
+ * Since: 0.2.2
+ */
+
+TfChannel *
+tf_channel_new_finish (GObject *object,
+ GAsyncResult *result,
+ GError **error)
+{
+ return (TfChannel *) g_async_initable_new_finish (G_ASYNC_INITABLE (object),
+ result, error);
+}
diff --git a/telepathy-farstream/channel.h b/telepathy-farstream/channel.h
index 55533bd..e66742c 100644
--- a/telepathy-farstream/channel.h
+++ b/telepathy-farstream/channel.h
@@ -53,6 +53,10 @@ void tf_channel_new_async (TpChannel *channel_proxy,
GAsyncReadyCallback callback,
gpointer user_data);
+TfChannel *tf_channel_new_finish (GObject *object,
+ GAsyncResult *result,
+ GError **error);
+
gboolean tf_channel_bus_message (TfChannel *channel,
GstMessage *message);