]> git.sesse.net Git - vlc/blob - src/android/netconf.c
puzzle: fix error check, do not leak pictures on error
[vlc] / src / android / netconf.c
1 /*****************************************************************************
2  * netconf.c : Network configuration
3  *****************************************************************************
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 2.1 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
18  *****************************************************************************/
19
20 #ifdef HAVE_CONFIG_H
21 # include "config.h"
22 #endif
23
24 #include <vlc_common.h>
25 #include <vlc_network.h>
26
27 /* This is empty, of course
28  *
29  * The reason is that there is no simple way to get the proxy settings on all
30  * supported versions of Android, even from the Java side...
31  *
32  * The best way would be to follow this "solution"
33  * http://stackoverflow.com/questions/10811698/getting-wifi-proxy-settings-in-android/13616054#13616054
34  *
35  * Or, in summary, using JNI:
36  * if( version >= 4.0 ) {
37  *     System.getProperty( "http.proxyHost" );
38  *     System.getProperty( "http.proxyPort" );
39  * } else {
40  *     context = magically_find_context();
41  *     android.net.Proxy.getHost( context );
42  *     android.net.Proxy.getPort( context );
43  * }
44  *
45  * */
46
47 /**
48  * Determines the network proxy server to use (if any).
49  * @param url absolute URL for which to get the proxy server
50  * @return proxy URL, NULL if no proxy or error
51  */
52 char *vlc_getProxyUrl(const char *url)
53 {
54     return NULL;
55 }