path: root/mp_osd.h
diff options
authorwm4 <wm4@nowhere>2012-09-24 21:57:43 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:32 +0200
commit88849fd1d4056bc22305cc4433dc56360dd6d0e9 (patch)
treed444c8533404a303a07e36c288474d7d927457f9 /mp_osd.h
parenta441cd3eeb9291e20d5a8052d32ce8180b017763 (diff)
commands: add choice type to input commands
Allow using the choice type (as it used for command line) for arguments of input commands. Change the magic integer arguments of some commands (like seek) to use choices instead. The old numeric values are still allowed (but only those which made sense before, not arbitrary integers). In order to do this, remove the input.c specific types (like MP_CMD_ARG_INT) completely and specify commands using the m_option types. Also, add the special choice "-" to some arguments. It's supposed to signify the default value, so arguments can be easily skipped. Maybe the choice option should recognize this and not change the previous value, but we'll leave this for later. For now, leave compatibility integer values for all new choice arguments, e.g. "0" maps to 0. We could let the choice option type do this automatically, but we don't, because we want user input values and internal mplayer values decoupled in general. The compatibility options will be removed one day, too. Also, remove optional args for strings - would require either annoying additional code, or copying strings twice. It's not used, so remove it.
Diffstat (limited to 'mp_osd.h')
0 files changed, 0 insertions, 0 deletions