[vlc-commits] os2: add vlc_getProxyUrl()

KO Myung-Hun git at videolan.org
Fri Apr 19 14:33:35 CEST 2013


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Fri Apr 19 21:30:22 2013 +0900| [ebbe5a5ff8ad9369d6a010bb98bf12e7977e8906] | committer: Rafaël Carré

os2: add vlc_getProxyUrl()

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebbe5a5ff8ad9369d6a010bb98bf12e7977e8906
---

 src/Makefile.am   |    1 +
 src/os2/netconf.c |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/src/Makefile.am b/src/Makefile.am
index af4c10b..639d157 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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
index 0000000..aa97f35
--- /dev/null
+++ b/src/os2/netconf.c
@@ -0,0 +1,38 @@
+/*****************************************************************************
+ * netconf.c : Network configuration
+ *****************************************************************************
+ * Copyright (C) 2013 KO Myung-Hun <komh at 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;
+}



More information about the vlc-commits mailing list