summaryrefslogtreecommitdiff
path: root/src/search-channel.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-24 16:12:46 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-24 16:12:46 +0100
commit4afb006a12463289f98137cef03c2d989d608504 (patch)
treee28e5ba682bc55c7cde0b9d26bf91f6c5110137d /src/search-channel.c
parentfdc5b48b75be4abc6416da4863d07f3736aaa83f (diff)
downloadtelepathy-gabble-4afb006a12463289f98137cef03c2d989d608504.tar.gz
add gabble_search_channel_close as a public method
Diffstat (limited to 'src/search-channel.c')
-rw-r--r--src/search-channel.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/search-channel.c b/src/search-channel.c
index 645d95d62..9a6c25a0a 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -1291,13 +1291,13 @@ gabble_search_channel_class_init (GabbleSearchChannelClass *klass)
}
/**
- * gabble_search_channel_close
+ * gabble_search_channel_close_async
*
* Implements D-Bus method Close
* on interface org.freedesktop.Telepathy.Channel
*/
static void
-gabble_search_channel_close (TpSvcChannel *iface,
+gabble_search_channel_close_async (TpSvcChannel *iface,
DBusGMethodInvocation *context)
{
GabbleSearchChannel *chan = GABBLE_SEARCH_CHANNEL (iface);
@@ -1313,9 +1313,9 @@ channel_iface_init (gpointer g_iface,
{
TpSvcChannelClass *klass = g_iface;
-#define IMPLEMENT(x) tp_svc_channel_implement_##x (\
- klass, gabble_search_channel_##x)
- IMPLEMENT(close);
+#define IMPLEMENT(x, suffix) tp_svc_channel_implement_##x (\
+ klass, gabble_search_channel_##x##suffix)
+ IMPLEMENT(close,_async);
#undef IMPLEMENT
}
@@ -1380,6 +1380,12 @@ gabble_search_channel_stop (GabbleSvcChannelTypeContactSearch *self,
}
}
+void
+gabble_search_channel_close (GabbleSearchChannel *self)
+{
+ ensure_closed (self);
+}
+
static void
contact_search_iface_init (gpointer g_iface,
gpointer iface_data)