options: add "disabled option" functionality
commit89b37a32dabc456f35a8e3d828a22861bd292ca8
authorUoti Urpala <uau@mplayer2.org>
Sun, 4 Sep 2011 11:34:45 +0000 (4 14:34 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sun, 4 Sep 2011 11:36:09 +0000 (4 14:36 +0300)
tree607fbba9d6fd42d6700a5bab5282d2ea1fdef17a
parent79469244f72d4350b630b21eac034a81b7b24cba
options: add "disabled option" functionality

Add functionality to mark options that depend on features disabled at
compile time as disabled rather than not compiling the option
definitions at all. This allows printing a warning about the option
not being available because of a disabled feature, instead of just
"unknown option". Because the option definitions are still compiled
fully, this only works for definitions that do not reference symbols
which are not available if the feature is disabled. Use the new
functionality for options depending on libass.
cfg-mplayer.h
m_config.c
m_config.h
m_option.h