[telepathy-gabble/master] Implement CandidatesPrepared
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Tue Dec 29 05:34:52 PST 2009
For jingle candidates prepared is basically meaningless, so the implementation
just returns successfully right away
---
src/call-stream.c | 10 ++++++++++
tests/twisted/jingle/call-basics.py | 1 +
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/call-stream.c b/src/call-stream.c
index 0f2e5b9..b60865f 100644
--- a/src/call-stream.c
+++ b/src/call-stream.c
@@ -395,6 +395,15 @@ gabble_call_stream_add_candidates (GabbleSvcCallStreamInterfaceMedia *iface,
}
static void
+gabble_call_stream_candidates_prepared (
+ GabbleSvcCallStreamInterfaceMedia *iface,
+ DBusGMethodInvocation *context)
+{
+ gabble_svc_call_stream_interface_media_return_from_candidates_prepared (
+ context);
+}
+
+static void
call_stream_iface_init (gpointer g_iface, gpointer iface_data)
{
}
@@ -408,6 +417,7 @@ call_stream_media_iface_init (gpointer g_iface, gpointer iface_data)
#define IMPLEMENT(x) gabble_svc_call_stream_interface_media_implement_##x (\
klass, gabble_call_stream_##x)
IMPLEMENT(add_candidates);
+ IMPLEMENT(candidates_prepared);
#undef IMPLEMENT
}
diff --git a/tests/twisted/jingle/call-basics.py b/tests/twisted/jingle/call-basics.py
index 765d151..8cda677 100644
--- a/tests/twisted/jingle/call-basics.py
+++ b/tests/twisted/jingle/call-basics.py
@@ -138,6 +138,7 @@ def run_test(jp, q, bus, conn, stream, incoming):
candidates = jt2.get_call_remote_transports_dbus ()
cstream.AddCandidates (candidates,
dbus_interface=cs.CALL_STREAM_IFACE_MEDIA)
+ cstream.CandidatesPrepared (dbus_interface=cs.CALL_STREAM_IFACE_MEDIA)
local_candidates = cstream.Get(cs.CALL_STREAM_IFACE_MEDIA,
"LocalCandidates", dbus_interface=dbus.PROPERTIES_IFACE)
--
1.5.6.5
More information about the telepathy-commits
mailing list