diff options
author | wm4 <wm4@nowhere> | 2012-08-06 17:42:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-06 17:42:53 +0200 |
commit | 0c1dd8a8f54a152755faef3d323ce6fdc7d63f73 (patch) | |
tree | a36668b2ab9fead7c6dd6c0d72a26daa1b68f597 /osdep | |
parent | 1ce5ca5f26d65359de632cc96a3d745fdeab2465 (diff) | |
download | mpv-0c1dd8a8f54a152755faef3d323ce6fdc7d63f73.tar.bz2 mpv-0c1dd8a8f54a152755faef3d323ce6fdc7d63f73.tar.xz |
m_config: support flatten and merge flags for suboptions
M_OPT_PREFIXED allows adding top-level options with the suboption
mechanism. The point of this is that, even though these options are
top-level options, they don't need to be added directly to a top-
level option array (such as mplayer_opts[]). Instead, the suboption
can be defined in a separate source file. Only a suboption declaration
is needed to add these options.
M_OPT_MERGE is similar to M_OPT_PREFIXED, but doesn't add the name of
the suboptions entry as prefix.
Given you have a suboption declaration "prefix" and the suboption
"subopt", you can pass them as follows on the command line:
normal: --prefix=subopt=value
M_OPT_PREFIXED: --prefix-subopt=value
M_OPT_MERGE: --subopt=value
Diffstat (limited to 'osdep')
0 files changed, 0 insertions, 0 deletions