summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-16 23:06:06 +0100
committerwm4 <wm4@nowhere>2014-01-16 23:06:41 +0100
commitd3b56435896d5fde202f56214e3ea3c2e153465d (patch)
tree7cbf71ce4a5f6a043bebeb875a420ac1eaa9e489 /options/options.c
parent82067e6ac37f73099923c86cf38fc44100a8d3c2 (diff)
downloadmpv-d3b56435896d5fde202f56214e3ea3c2e153465d.tar.bz2
mpv-d3b56435896d5fde202f56214e3ea3c2e153465d.tar.xz
lua: add a --lua-opts option, which can be queried by scripts
The values set by this new option can be queried by Lua scripts using the mp.getopt() function. The function takes a string parameter, and returns the value of the first key that matches. If no key matches, nil is returned.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index cff2eff810..b1131f0938 100644
--- a/options/options.c
+++ b/options/options.c
@@ -239,6 +239,7 @@ const m_option_t mp_opts[] = {
#if HAVE_LUA
OPT_STRINGLIST("lua", lua_files, CONF_GLOBAL),
+ OPT_KEYVALUELIST("lua-opts", lua_opts, CONF_GLOBAL),
OPT_FLAG("osc", lua_load_osc, CONF_GLOBAL),
#endif