]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-call-utils.h
Merge remote-tracking branch 'glassrose/debug-window-send-to-pastebin-button-658724'
[empathy.git] / libempathy-gtk / empathy-call-utils.h
1 /*
2  * Copyright (C) 2011 Collabora Ltd.
3  *
4  * The code contained in this file is free software; you can redistribute
5  * it and/or modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either version
7  * 2.1 of the License, or (at your option) any later version.
8  *
9  * This file is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this code; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Authors: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
19  */
20
21 #ifndef __EMPATHY_CALL_UTILS_H__
22 #define __EMPATHY_CALL_UTILS_H__
23
24 #include <gst/gst.h>
25
26 G_BEGIN_DECLS
27
28 /* Calls */
29 void empathy_call_new_with_streams (const gchar *contact,
30     TpAccount *account,
31     gboolean initial_audio,
32     gboolean initial_video,
33     gint64 timestamp);
34
35 GHashTable * empathy_call_create_call_request (const gchar *contact,
36     gboolean initial_audio,
37     gboolean initial_video);
38
39 GHashTable * empathy_call_create_streamed_media_request (const gchar *contact,
40     gboolean initial_audio,
41     gboolean initial_video);
42
43 void empathy_call_set_stream_properties (GstElement *element,
44     gboolean echo_cancellation);
45
46 TpSendingState empathy_call_channel_get_video_state (TpCallChannel *self);
47 void empathy_call_channel_send_video (TpCallChannel *self,
48     gboolean send);
49
50
51 G_END_DECLS
52
53 #endif /*  __EMPATHY_CALL_UTILS_H__ */