]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-call-utils.h
7e342d819f70d8e12dcb3e07c55c758e1be2ef90
[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 <glib.h>
25 #include <telepathy-glib/telepathy-glib.h>
26
27 G_BEGIN_DECLS
28
29 /* Calls */
30 void empathy_call_new_with_streams (const gchar *contact,
31     TpAccount *account,
32     gboolean initial_audio,
33     gboolean initial_video,
34     gint64 timestamp);
35
36 GHashTable * empathy_call_create_call_request (const gchar *contact,
37     gboolean initial_audio,
38     gboolean initial_video);
39
40 TpSendingState empathy_call_channel_get_video_state (TpCallChannel *self);
41 void empathy_call_channel_send_video (TpCallChannel *self,
42     gboolean send);
43
44
45 G_END_DECLS
46
47 #endif /*  __EMPATHY_CALL_UTILS_H__ */