[vlc-devel] [PATCH 2/2] os2: add vlc_getProxyUrl()

KO Myung-Hun komh78 at gmail.com
Fri Apr 19 14:30:22 CEST 2013


---
 src/Makefile.am   |    1 +
 src/os2/netconf.c |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 src/os2/netconf.c

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..80cf394
--- /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;
+}
-- 
1.7.3.2




More information about the vlc-devel mailing list