diff options
author | wm4 <wm4@nowhere> | 2014-01-16 23:06:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-16 23:06:41 +0100 |
commit | d3b56435896d5fde202f56214e3ea3c2e153465d (patch) | |
tree | 7cbf71ce4a5f6a043bebeb875a420ac1eaa9e489 /options/options.h | |
parent | 82067e6ac37f73099923c86cf38fc44100a8d3c2 (diff) | |
download | mpv-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.h | 1 |
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; |