commands: add generic option -> property wrapper
commitb9a3579ec980dfb01d0b952bf0b859ecdf62d7ea
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 18 Dec 2010 06:02:48 +0000 (18 08:02 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 18 Dec 2010 09:59:09 +0000 (18 11:59 +0200)
tree9f90d981a92bb6cfb79e5feed1b3b9bfde9ab3b0
parent7e366113f75c696ae2b32f5faa5f80ec3fca96b8
commands: add generic option -> property wrapper

Add mp_property_generic_option(), a property function that can be used
for generic option-based properties that do not require any action
beyond manipulating the value of the option variable. Currently it
directly implements GET and SET, plus STEP_UP for "choice" options
only. Use it to add a property for -pts-association-mode (not
particularly useful in normal use, but serves as a test).
DOCS/tech/slave.txt
command.c
m_config.c
m_option.h