aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-02-03 17:02:46 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-03 17:02:46 +0800
commit5f6779c758764d859efe162ecb6fba579cc318f1 (patch)
tree4ac7c249472dd2f1304372faedf34276d5e8e812 /libempathy
parent371a7a4d93ba32f2ea9b9a18a36410ca7702ae23 (diff)
downloadgsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.gz
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.bz2
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.lz
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.xz
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.zst
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.zip
Switch to calling CallFactory to make calls
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2382
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-utils.c34
-rw-r--r--libempathy/empathy-utils.h3
2 files changed, 1 insertions, 36 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index bda638dff..a476d9e54 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -453,37 +453,6 @@ empathy_proxy_equal (gconstpointer a,
g_str_equal (proxy_a->bus_name, proxy_b->bus_name);
}
-static void
-empathy_call_request_cb (EmpathyDispatchOperation *operation,
- const GError *error, gpointer user_data)
-{
- EmpathyContact *contact = EMPATHY_CONTACT (user_data);
-
- if (error != NULL)
- {
- DEBUG ("Failed to request streamed media channel %s",
- error->message);
- }
- else
- {
- EmpathyTpCall *call =
- EMPATHY_TP_CALL (
- empathy_dispatch_operation_get_channel_wrapper (operation));
-
- empathy_tp_call_to (call, contact);
- }
-
- g_object_unref (contact);
-}
-
-void
-empathy_start_call_with_contact (EmpathyContact *contact)
-{
- g_object_ref (contact);
- empathy_dispatcher_call_with_contact (contact, empathy_call_request_cb,
- contact);
-}
-
gboolean
empathy_check_available_state (void)
{
@@ -495,10 +464,9 @@ empathy_check_available_state (void)
g_object_unref (idle);
if (presence != MC_PRESENCE_AVAILABLE &&
- presence != MC_PRESENCE_UNSET) {
+ presence != MC_PRESENCE_UNSET) {
return FALSE;
}
return TRUE;
}
-
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index 46fa193c0..8684acc00 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -88,9 +88,6 @@ gboolean empathy_proxy_equal (gconstpointer a,
gconstpointer b);
guint empathy_proxy_hash (gconstpointer key);
gboolean empathy_check_available_state (void);
-/* Temporary utility function, should be replaces by better voip infrastructure
- * soon */
-void empathy_start_call_with_contact (EmpathyContact *contact);
G_END_DECLS