diff options
author | wm4 <wm4@nowhere> | 2013-11-28 19:04:16 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-28 19:04:16 +0100 |
commit | 5318a1bea1e477033cd355e19be366f0504222e9 (patch) | |
tree | 23d400653b1bed44eb4901d72f57accbf8d6e5da /stream/cookies.c | |
parent | 5411fbdb2341433dfa3241034390c19c257ce57e (diff) | |
download | mpv-5318a1bea1e477033cd355e19be366f0504222e9.tar.bz2 mpv-5318a1bea1e477033cd355e19be366f0504222e9.tar.xz |
input: use separate type for command definitions
Introduce a mp_cmd_def struct to define commands, instead of using
mp_cmd for this. This way each command parameter can be a m_option,
instead of m_option plus some more stuff.
Define the ARG_ macros directly in terms of the OPT_ macros. Not sure if
this makes it easier to read (maybe not, even if it looks simpler), but
at least it makes it easier to add other option types.
Another idea was adding a name for each parameter (so you could have
named parameters), but not today.
Diffstat (limited to 'stream/cookies.c')
0 files changed, 0 insertions, 0 deletions