aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-call-utils.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-02-24 00:19:48 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 17:20:05 +0800
commit36581b216476e337425ca8737aa7059062a81d99 (patch)
treefcfb67cc5f92cb0652ad625e6a226c30480ee8e5 /libempathy-gtk/empathy-call-utils.c
parenta5e92745d265b5623c045b6cc90164af89b25ded (diff)
downloadgsoc2013-empathy-36581b216476e337425ca8737aa7059062a81d99.tar
gsoc2013-empathy-36581b216476e337425ca8737aa7059062a81d99.tar.gz
gsoc2013-empathy-36581b216476e337425ca8737aa7059062a81d99.tar.bz2
gsoc2013-empathy-36581b216476e337425ca8737aa7059062a81d99.tar.lz
gsoc2013-empathy-36581b216476e337425ca8737aa7059062a81d99.tar.xz
gsoc2013-empathy-36581b216476e337425ca8737aa7059062a81d99.tar.zst
gsoc2013-empathy-36581b216476e337425ca8737aa7059062a81d99.zip
Always build telepathy-yell and handle Call channels
Just keep empathy-call optional. Conflicts: libempathy-gtk/empathy-call-utils.c libempathy/empathy-channel-factory.c
Diffstat (limited to 'libempathy-gtk/empathy-call-utils.c')
-rw-r--r--libempathy-gtk/empathy-call-utils.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/libempathy-gtk/empathy-call-utils.c b/libempathy-gtk/empathy-call-utils.c
index 5f821dd19..1f3a4fcc0 100644
--- a/libempathy-gtk/empathy-call-utils.c
+++ b/libempathy-gtk/empathy-call-utils.c
@@ -26,9 +26,7 @@
#include <telepathy-glib/telepathy-glib.h>
-#if HAVE_CALL
- #include <telepathy-yell/telepathy-yell.h>
-#endif
+#include <telepathy-yell/telepathy-yell.h>
#include "empathy-call-utils.h"
@@ -53,7 +51,6 @@ show_call_error (GError *error)
gtk_widget_show (dialog);
}
-#if HAVE_CALL
GHashTable *
empathy_call_create_call_request (const gchar *contact,
gboolean initial_audio,
@@ -72,7 +69,6 @@ empathy_call_create_call_request (const gchar *contact,
initial_video,
NULL);
}
-#endif
GHashTable *
empathy_call_create_streamed_media_request (const gchar *contact,
@@ -111,7 +107,6 @@ create_streamed_media_channel_cb (GObject *source,
}
}
-#if HAVE_CALL
static void
create_call_channel_cb (GObject *source,
GAsyncResult *result,
@@ -142,7 +137,6 @@ create_call_channel_cb (GObject *source,
create_streamed_media_channel_cb,
NULL);
}
-#endif
void
empathy_call_new_with_streams (const gchar *contact,
@@ -151,7 +145,6 @@ empathy_call_new_with_streams (const gchar *contact,
gboolean initial_video,
gint64 timestamp)
{
-#if HAVE_CALL
GHashTable *call_request, *streamed_media_request;
TpAccountChannelRequest *call_req, *streamed_media_req;
@@ -175,22 +168,4 @@ empathy_call_new_with_streams (const gchar *contact,
g_hash_table_unref (call_request);
g_hash_table_unref (streamed_media_request);
g_object_unref (call_req);
-#else
- GHashTable *request;
- TpAccountChannelRequest *req;
-
- request = empathy_call_create_streamed_media_request (contact,
- initial_audio,
- initial_video);
-
- req = tp_account_channel_request_new (account, request, timestamp);
-
- tp_account_channel_request_create_channel_async (req,
- EMPATHY_AV_BUS_NAME, NULL,
- create_streamed_media_channel_cb,
- NULL);
-
- g_hash_table_unref (request);
- g_object_unref (req);
-#endif
}