[telepathy-gabble/master] Impement CallChannel.Accept
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Tue Dec 29 05:34:49 PST 2009
---
src/call-channel.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/call-channel.c b/src/call-channel.c
index 8b55cd7..9879df0 100644
--- a/src/call-channel.c
+++ b/src/call-channel.c
@@ -671,8 +671,28 @@ channel_iface_init (gpointer g_iface, gpointer iface_data)
}
static void
+gabble_call_channel_accept (GabbleSvcChannelTypeCall *iface,
+ DBusGMethodInvocation *context)
+{
+ GabbleCallChannel *self = GABBLE_CALL_CHANNEL (iface);
+
+ DEBUG ("Client accepted the call");
+
+ gabble_jingle_session_accept (self->priv->session);
+
+ gabble_svc_channel_type_call_return_from_accept (context);
+}
+
+static void
call_iface_init (gpointer g_iface, gpointer iface_data)
{
+ GabbleSvcChannelTypeCallClass *klass =
+ (GabbleSvcChannelTypeCallClass *) g_iface;
+
+#define IMPLEMENT(x) gabble_svc_channel_type_call_implement_##x (\
+ klass, gabble_call_channel_##x)
+ IMPLEMENT(accept);
+#undef IMPLEMENT
}
static void
--
1.5.6.5
More information about the telepathy-commits
mailing list