1 /*****************************************************************************
2 * netconf.c : Network configuration
3 *****************************************************************************
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.
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.
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 *****************************************************************************/
24 #include <vlc_common.h>
25 #include <vlc_network.h>
27 /* This is empty, of course
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...
32 * The best way would be to follow this "solution"
33 * http://stackoverflow.com/questions/10811698/getting-wifi-proxy-settings-in-android/13616054#13616054
35 * Or, in summary, using JNI:
36 * if( version >= 4.0 ) {
37 * System.getProperty( "http.proxyHost" );
38 * System.getProperty( "http.proxyPort" );
40 * context = magically_find_context();
41 * android.net.Proxy.getHost( context );
42 * android.net.Proxy.getPort( context );
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
52 char *vlc_getProxyUrl(const char *url)