[Telepathy-commits] [telepathy-gabble/master] instantiate GabbleOlpcGadgetManager

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Oct 7 08:48:00 PDT 2008


---
 src/connection.c |    6 ++++++
 src/connection.h |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index d293c29..4e311c4 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -59,6 +59,7 @@
 #include "media-factory.h"
 #include "muc-factory.h"
 #include "namespaces.h"
+#include "olpc-gadget-manager.h"
 #include "presence-cache.h"
 #include "presence.h"
 #include "pubsub.h"
@@ -219,6 +220,11 @@ _gabble_connection_create_channel_managers (TpBaseConnection *conn)
         "connection", self,
         NULL));
 
+  self->olpc_gadget_manager = g_object_new (GABBLE_TYPE_OLPC_GADGET_MANAGER,
+      "connection", self,
+      NULL);
+  g_ptr_array_add (channel_managers, self->olpc_gadget_manager);
+
   return channel_managers;
 }
 
diff --git a/src/connection.h b/src/connection.h
index 5394475..ec09078 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -32,6 +32,7 @@
 #include "types.h"
 #include "error.h"
 #include "muc-factory.h"
+#include "olpc-gadget-manager.h"
 
 G_BEGIN_DECLS
 
@@ -148,6 +149,9 @@ struct _GabbleConnection {
     const gchar *olpc_gadget_activity;
     gboolean olpc_gadget_publish;
 
+    /* OLPC Gadget manager */
+    GabbleOlpcGadgetManager *olpc_gadget_manager;
+
     /* bytestream factory */
     GabbleBytestreamFactory *bytestream_factory;
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list