]> git.sesse.net Git - vlc/commitdiff
os2: add vlc_getProxyUrl()
authorKO Myung-Hun <komh78@gmail.com>
Fri, 19 Apr 2013 12:30:22 +0000 (21:30 +0900)
committerRafaël Carré <funman@videolan.org>
Fri, 19 Apr 2013 12:33:18 +0000 (14:33 +0200)
Signed-off-by: Rafaël Carré <funman@videolan.org>
src/Makefile.am
src/os2/netconf.c [new file with mode: 0644]

index af4c10b0bf83ec2a9cb6c9e3d3b8cdbb3ec60b1c..639d157676af0a8f0debc578a67f178a657e7cb4 100644 (file)
@@ -303,6 +303,7 @@ SOURCES_libvlc_os2 = \
        os2/getaddrinfo.c \
        os2/dirs.c \
        os2/filesystem.c \
+       os2/netconf.c \
        os2/plugin.c \
        os2/thread.c \
        os2/specific.c \
diff --git a/src/os2/netconf.c b/src/os2/netconf.c
new file mode 100644 (file)
index 0000000..aa97f35
--- /dev/null
@@ -0,0 +1,38 @@
+/*****************************************************************************
+ * netconf.c : Network configuration
+ *****************************************************************************
+ * Copyright (C) 2013 KO Myung-Hun <komh@chollian.net>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
+#include <vlc_network.h>
+
+/**
+ * Determines the network proxy server to use (if any).
+ * @param url absolute URL for which to get the proxy server
+ * @return proxy URL, NULL if no proxy or error
+ */
+char *vlc_getProxyUrl(const char *url)
+{
+    VLC_UNUSED(url);
+
+    return NULL;
+}