aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-dispatcher.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-21 19:18:36 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-21 20:47:53 +0800
commit7ecb49662199bb39b38e38f58ab4dcf5e3393b7b (patch)
treeb9a6fa8415defbe7d37d0f7c3e4ab2efaf1e1bf6 /libempathy/empathy-dispatcher.c
parente0dfeacc5638249a9b3864e04195353ea4271806 (diff)
downloadgsoc2013-empathy-7ecb49662199bb39b38e38f58ab4dcf5e3393b7b.tar
gsoc2013-empathy-7ecb49662199bb39b38e38f58ab4dcf5e3393b7b.tar.gz
gsoc2013-empathy-7ecb49662199bb39b38e38f58ab4dcf5e3393b7b.tar.bz2
gsoc2013-empathy-7ecb49662199bb39b38e38f58ab4dcf5e3393b7b.tar.lz
gsoc2013-empathy-7ecb49662199bb39b38e38f58ab4dcf5e3393b7b.tar.xz
gsoc2013-empathy-7ecb49662199bb39b38e38f58ab4dcf5e3393b7b.tar.zst
gsoc2013-empathy-7ecb49662199bb39b38e38f58ab4dcf5e3393b7b.zip
Stop advertissing audio/video capabilities using old API
Connection.Interface.Capabilities is so passé...
Diffstat (limited to 'libempathy/empathy-dispatcher.c')
-rw-r--r--libempathy/empathy-dispatcher.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index ce234e452..ad9a236c2 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -762,26 +762,11 @@ dispatcher_connection_got_all (TpProxy *proxy,
}
static void
-dispatcher_connection_advertise_capabilities_cb (TpConnection *connection,
- const GPtrArray *capabilities,
- const GError *error,
- gpointer user_data,
- GObject *self)
-{
- if (error)
- DEBUG ("Error: %s", error->message);
-}
-
-static void
connection_ready_cb (TpConnection *connection,
const GError *error,
gpointer user_data)
{
EmpathyDispatcher *self = EMPATHY_DISPATCHER (user_data);
- GPtrArray *capabilities;
- GType cap_type;
- GValue cap = {0, };
- const gchar *remove_ = NULL;
if (error != NULL)
{
@@ -793,29 +778,6 @@ connection_ready_cb (TpConnection *connection,
TP_IFACE_CONNECTION_INTERFACE_REQUESTS, dispatcher_connection_got_all,
NULL, NULL, G_OBJECT (self));
- /* Advertise VoIP capabilities */
- capabilities = g_ptr_array_sized_new (1);
- cap_type = dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING,
- G_TYPE_UINT, G_TYPE_INVALID);
- g_value_init (&cap, cap_type);
- g_value_take_boxed (&cap, dbus_g_type_specialized_construct (cap_type));
- dbus_g_type_struct_set (&cap,
- 0, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA,
- 1, TP_CHANNEL_MEDIA_CAPABILITY_AUDIO |
- TP_CHANNEL_MEDIA_CAPABILITY_VIDEO |
- TP_CHANNEL_MEDIA_CAPABILITY_NAT_TRAVERSAL_STUN |
- TP_CHANNEL_MEDIA_CAPABILITY_NAT_TRAVERSAL_GTALK_P2P |
- TP_CHANNEL_MEDIA_CAPABILITY_NAT_TRAVERSAL_ICE_UDP,
- G_MAXUINT);
- g_ptr_array_add (capabilities, g_value_get_boxed (&cap));
-
- tp_cli_connection_interface_capabilities_call_advertise_capabilities (
- connection, -1, capabilities, &remove_,
- dispatcher_connection_advertise_capabilities_cb,
- NULL, NULL, G_OBJECT (self));
-
- g_value_unset (&cap);
- g_ptr_array_free (capabilities, TRUE);
out:
g_object_unref (self);
}