[Telepathy-commits] [telepathy-gabble/master] add gabble_olpc_view_close public method
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Oct 9 08:58:24 PDT 2008
---
src/olpc-view.c | 24 +++++++++++++++---------
src/olpc-view.h | 2 ++
2 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/olpc-view.c b/src/olpc-view.c
index ffa7de3..57db548 100644
--- a/src/olpc-view.c
+++ b/src/olpc-view.c
@@ -577,15 +577,21 @@ do_close (GabbleOlpcView *self,
return TRUE;
}
+void
+gabble_olpc_view_close (GabbleOlpcView *self)
+{
+ do_close (self, NULL);
+}
+
/**
- * gabble_olpc_view_close
+ * gabble_olpc_view_close_dbus
*
* Implements D-Bus method Close
* on interface org.freedesktop.Telepathy.Channel
*/
static void
-gabble_olpc_view_close (TpSvcChannel *iface,
- DBusGMethodInvocation *context)
+gabble_olpc_view_close_dbus (TpSvcChannel *iface,
+ DBusGMethodInvocation *context)
{
GabbleOlpcView *self = GABBLE_OLPC_VIEW (iface);
GabbleOlpcViewPrivate *priv = GABBLE_OLPC_VIEW_GET_PRIVATE (self);
@@ -1015,11 +1021,11 @@ channel_iface_init (gpointer g_iface, gpointer iface_data)
{
TpSvcChannelClass *klass = (TpSvcChannelClass *) g_iface;
-#define IMPLEMENT(x) tp_svc_channel_implement_##x (\
- klass, gabble_olpc_view_##x)
- IMPLEMENT(close);
- IMPLEMENT(get_channel_type);
- IMPLEMENT(get_handle);
- IMPLEMENT(get_interfaces);
+#define IMPLEMENT(x,suffix) tp_svc_channel_implement_##x (\
+ klass, gabble_olpc_view_##x##suffix)
+ IMPLEMENT(close,_dbus);
+ IMPLEMENT(get_channel_type,);
+ IMPLEMENT(get_handle,);
+ IMPLEMENT(get_interfaces,);
#undef IMPLEMENT
}
diff --git a/src/olpc-view.h b/src/olpc-view.h
index abf08ac..d797245 100644
--- a/src/olpc-view.h
+++ b/src/olpc-view.h
@@ -100,6 +100,8 @@ GPtrArray * gabble_olpc_view_get_buddy_activities (GabbleOlpcView *self,
void gabble_olpc_view_buddies_left_activity (GabbleOlpcView *self,
GArray *buddies, TpHandle room);
+void gabble_olpc_view_close (GabbleOlpcView *self);
+
#define GABBLE_ARRAY_TYPE_HANDLE (dbus_g_type_get_collection ("GArray", \
G_TYPE_UINT))
--
1.5.6.5
More information about the Telepathy-commits
mailing list