]> sjero.net Git - linphone/blob - coreapi/linphone_tunnel_stubs.c
- do not register outside of tunnel when tunnel is activated but not yet connected.
[linphone] / coreapi / linphone_tunnel_stubs.c
1 /***************************************************************************
2  *            linphone_tunnel.cc
3  *
4  *  Fri Dec 9, 2011
5  *  Copyright  2011  Belledonne Communications
6  *  Author: Guillaume Beraudo
7  *  Email: guillaume dot beraudo at linphone dot org
8  ****************************************************************************/
9
10 /*
11  *  This program is free software; you can redistribute it and/or modify
12  *  it under the terms of the GNU General Public License as published by
13  *  the Free Software Foundation; either version 2 of the License, or
14  *  (at your option) any later version.
15  *
16  *  This program is distributed in the hope that it will be useful,
17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *  GNU General Public License for more details.
20  *
21  *  You should have received a copy of the GNU General Public License
22  *  along with this program; if not, write to the Free Software
23  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24  */
25
26 #include "linphone_tunnel.h"
27 #include "linphonecore.h"
28 #include "private.h"
29 #include "lpconfig.h"
30
31
32 LinphoneTunnel* linphone_core_get_tunnel(LinphoneCore *lc){
33         return lc->tunnel;
34 }
35
36 /*stubs to avoid to have #ifdef TUNNEL_ENABLED in upper layers*/
37
38 void linphone_tunnel_destroy(LinphoneTunnel *tunnel){
39 }
40
41
42 void linphone_tunnel_add_server(LinphoneTunnel *tunnel, LinphoneTunnelConfig *tunnel_config){
43 }
44
45 void linphone_tunnel_remove_server(LinphoneTunnel *tunnel, LinphoneTunnelConfig *tunnel_config){
46 }
47
48 const MSList *linphone_tunnel_get_servers(LinphoneTunnel *tunnel){
49         return NULL;
50 }
51
52 void linphone_tunnel_clean_servers(LinphoneTunnel *tunnel){
53 }
54
55 void linphone_tunnel_enable(LinphoneTunnel *tunnel, bool_t enabled){
56 }
57
58 bool_t linphone_tunnel_enabled(LinphoneTunnel *tunnel){
59         return FALSE;
60 }
61
62 bool_t linphone_tunnel_connected(LinphoneTunnel *tunnel){
63         return FALSE;
64 }
65
66
67 void linphone_tunnel_enable_logs_with_handler(LinphoneTunnel *tunnel, bool_t enabled, OrtpLogFunc logHandler){
68 }
69
70 void linphone_tunnel_set_http_proxy_auth_info(LinphoneTunnel *tunnel, const char* username,const char* passwd){
71 }
72
73 void linphone_tunnel_set_http_proxy(LinphoneTunnel*tunnel, const char *host, int port, const char* username,const char* passwd){
74 }
75
76 void linphone_tunnel_get_http_proxy(LinphoneTunnel*tunnel,const char **host, int *port, const char **username, const char **passwd){
77 }
78
79 void linphone_tunnel_reconnect(LinphoneTunnel *tunnel){
80 }
81
82 void linphone_tunnel_auto_detect(LinphoneTunnel *tunnel){
83 }
84
85 void linphone_tunnel_configure(LinphoneTunnel *tunnel){
86 }
87