[Telepathy-commits] [telepathy-gabble/master] Implement EnsureChannel for IM channels

Will Thompson will.thompson at collabora.co.uk
Wed Sep 24 07:21:19 PDT 2008


---
 src/im-factory.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/im-factory.c b/src/im-factory.c
index 7052bd8..635a4e0 100644
--- a/src/im-factory.c
+++ b/src/im-factory.c
@@ -604,6 +604,18 @@ gabble_im_factory_request_channel (TpChannelManager *manager,
 }
 
 
+static gboolean
+gabble_im_factory_ensure_channel (TpChannelManager *manager,
+                                  gpointer request_token,
+                                  GHashTable *request_properties)
+{
+  GabbleImFactory *self = GABBLE_IM_FACTORY (manager);
+
+  return gabble_im_factory_requestotron (self, request_token,
+      request_properties, FALSE);
+}
+
+
 static void
 channel_manager_iface_init (gpointer g_iface,
                             gpointer iface_data)
@@ -614,4 +626,5 @@ channel_manager_iface_init (gpointer g_iface,
   iface->foreach_channel_class = gabble_im_factory_foreach_channel_class;
   iface->create_channel = gabble_im_factory_create_channel;
   iface->request_channel = gabble_im_factory_request_channel;
+  iface->ensure_channel = gabble_im_factory_ensure_channel;
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list