options: simplify option parsing/setting machinery
commit1e90a8657d19918dc7564f559b96dc3982286ba2
authorUoti Urpala <uau@mplayer2.org>
Mon, 7 May 2012 23:10:39 +0000 (8 02:10 +0300)
committerUoti Urpala <uau@mplayer2.org>
Tue, 8 May 2012 17:19:32 +0000 (8 20:19 +0300)
tree1992e988e0328eb141b06cbb3ad180bbcf0f274d
parent9fbfac25daaf6bdaab4c1213a294b59bded29b24
options: simplify option parsing/setting machinery

Each option type had three separate operations to copy option values
between memory locations: copy between general memory locations
("copy"), copy from general memory to active configuration of the
program ("set"), and in the other direction ("save"). No normal option
depends on this distinction any more. Change everything to define and
use a single "copy" operation only. Change the special options
"include" and "profile", which depended on hacky option types, to be
special-cased directly in option parsing instead. Remove the now
unused option types m_option_type_func and m_option_type_func_param.
m_config.c
m_config.h
m_option.c
m_option.h
m_struct.c
mplayer.c