aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-call-utils.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-02-23 02:14:07 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 17:20:05 +0800
commit5e797f1df68283302038c9723604c87f476a0656 (patch)
treece3b7c3d4e7898897de6ba140611575315fdf83a /libempathy-gtk/empathy-call-utils.c
parent0754b2673f0189e892074189535d3dfb6fd2a662 (diff)
downloadgsoc2013-empathy-5e797f1df68283302038c9723604c87f476a0656.tar
gsoc2013-empathy-5e797f1df68283302038c9723604c87f476a0656.tar.gz
gsoc2013-empathy-5e797f1df68283302038c9723604c87f476a0656.tar.bz2
gsoc2013-empathy-5e797f1df68283302038c9723604c87f476a0656.tar.lz
gsoc2013-empathy-5e797f1df68283302038c9723604c87f476a0656.tar.xz
gsoc2013-empathy-5e797f1df68283302038c9723604c87f476a0656.tar.zst
gsoc2013-empathy-5e797f1df68283302038c9723604c87f476a0656.zip
Don't require EmpathyContacts to start a call
Conflicts: libempathy-gtk/empathy-contact-menu.c libempathy-gtk/empathy-individual-menu.c libempathy-gtk/empathy-new-call-dialog.c
Diffstat (limited to 'libempathy-gtk/empathy-call-utils.c')
-rw-r--r--libempathy-gtk/empathy-call-utils.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-call-utils.c b/libempathy-gtk/empathy-call-utils.c
index c95b66236..2a4158539 100644
--- a/libempathy-gtk/empathy-call-utils.c
+++ b/libempathy-gtk/empathy-call-utils.c
@@ -35,7 +35,7 @@
#if HAVE_CALL
GHashTable *
-empathy_call_create_call_request (EmpathyContact *contact,
+empathy_call_create_call_request (const gchar *contact,
gboolean initial_audio,
gboolean initial_video)
{
@@ -44,8 +44,8 @@ empathy_call_create_call_request (EmpathyContact *contact,
TPY_IFACE_CHANNEL_TYPE_CALL,
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT,
TP_HANDLE_TYPE_CONTACT,
- TP_PROP_CHANNEL_TARGET_HANDLE, G_TYPE_UINT,
- empathy_contact_get_handle (contact),
+ TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING,
+ contact,
TPY_PROP_CHANNEL_TYPE_CALL_INITIAL_AUDIO, G_TYPE_BOOLEAN,
initial_audio,
TPY_PROP_CHANNEL_TYPE_CALL_INITIAL_VIDEO, G_TYPE_BOOLEAN,
@@ -55,7 +55,7 @@ empathy_call_create_call_request (EmpathyContact *contact,
#endif
GHashTable *
-empathy_call_create_streamed_media_request (EmpathyContact *contact,
+empathy_call_create_streamed_media_request (const gchar *contact,
gboolean initial_audio,
gboolean initial_video)
{
@@ -64,8 +64,8 @@ empathy_call_create_streamed_media_request (EmpathyContact *contact,
TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA,
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT,
TP_HANDLE_TYPE_CONTACT,
- TP_PROP_CHANNEL_TARGET_HANDLE, G_TYPE_UINT,
- empathy_contact_get_handle (contact),
+ TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING,
+ contact,
TP_PROP_CHANNEL_TYPE_STREAMED_MEDIA_INITIAL_AUDIO, G_TYPE_BOOLEAN,
initial_audio,
TP_PROP_CHANNEL_TYPE_STREAMED_MEDIA_INITIAL_VIDEO, G_TYPE_BOOLEAN,
@@ -121,14 +121,14 @@ create_call_channel_cb (GObject *source,
#endif
void
-empathy_call_new_with_streams (EmpathyContact *contact,
+empathy_call_new_with_streams (const gchar *contact,
+ TpAccount *account,
gboolean initial_audio,
gboolean initial_video,
gint64 timestamp)
{
#if HAVE_CALL
GHashTable *call_request, *streamed_media_request;
- TpAccount *account;
TpAccountChannelRequest *call_req, *streamed_media_req;
call_request = empathy_call_create_call_request (contact,
@@ -138,8 +138,6 @@ empathy_call_new_with_streams (EmpathyContact *contact,
streamed_media_request = empathy_call_create_streamed_media_request (
contact, initial_audio, initial_video);
- account = empathy_contact_get_account (contact);
-
call_req = tp_account_channel_request_new (account, call_request, timestamp);
streamed_media_req = tp_account_channel_request_new (account,
streamed_media_request,