summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-08 20:47:10 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-08 20:47:10 +0000
commit2cefb53a764d63b69a58ad168481c93efb5d34ca (patch)
treeaeeb7649976ea49f8bd7a769f99f9b1cf774b6a1 /cfg-common.h
parent195ebfbef8d4b8c5f9565819b700286b0b4023a2 (diff)
downloadmpv-2cefb53a764d63b69a58ad168481c93efb5d34ca.tar.bz2
mpv-2cefb53a764d63b69a58ad168481c93efb5d34ca.tar.xz
optionally reuse the socket if -reuse-socket is selected; patch by Yong Hwan (sio4 users sf net) simplified by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22491 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cfg-common.h b/cfg-common.h
index e313d62c46..3262490ec8 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -58,6 +58,8 @@
{"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},
+ {"reuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
+ {"noreuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
#ifdef HAVE_AF_INET6
{"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
#else
@@ -368,6 +370,7 @@ extern char *cookies_file;
extern int network_prefer_ipv4;
extern int network_ipv4_only_proxy;
+extern int reuse_socket;
#endif