summaryrefslogtreecommitdiffstats
path: root/options/options.h
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.h
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.h')
-rw-r--r--options/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h
index 0a50352d0d..e328ccd25c 100644
--- a/options/options.h
+++ b/options/options.h
@@ -52,6 +52,7 @@ typedef struct MPOpts {
char **reset_options;
char **lua_files;
+ char **lua_opts;
int lua_load_osc;
struct m_obj_settings *audio_driver_list, *ao_defs;