summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-12-08 13:25:35 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-12-08 13:25:35 +0000
commit28a127d80bb6363d47a3212409f05b5b0b687240 (patch)
tree46dc72427d04a496ef72aee67c230f4f59f57406 /cfg-common.h
parent0f7a779f7e2d3f2ce73aec91102e6a192b052176 (diff)
downloadmpv-28a127d80bb6363d47a3212409f05b5b0b687240.tar.bz2
mpv-28a127d80bb6363d47a3212409f05b5b0b687240.tar.xz
Send HTTP Cookies (reading from mozilla/netscape files) support by Dave Lambley <mplayer-dev-eng@dlambley.freeserve.co.uk>. Disabled by default.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11584 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cfg-common.h b/cfg-common.h
index 11a6a1654d..8cca54946f 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -42,10 +42,11 @@
{"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
{"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL},
-
+ {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+ {"nocookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
+ {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL},
-
#ifdef HAVE_AF_INET6
{"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
#else
@@ -287,6 +288,8 @@ extern char *network_username;
extern char *network_password;
extern int network_bandwidth;
extern char *network_useragent;
+extern int network_cookies_enabled;
+extern char *cookies_file;
extern int network_prefer_ipv4;
extern int network_ipv4_only_proxy;