summaryrefslogtreecommitdiffstats
path: root/m_config.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-09-04 14:34:45 +0300
committerUoti Urpala <uau@mplayer2.org>2011-09-04 14:36:09 +0300
commit89b37a32dabc456f35a8e3d828a22861bd292ca8 (patch)
tree607fbba9d6fd42d6700a5bab5282d2ea1fdef17a /m_config.h
parent79469244f72d4350b630b21eac034a81b7b24cba (diff)
downloadmpv-89b37a32dabc456f35a8e3d828a22861bd292ca8.tar.bz2
mpv-89b37a32dabc456f35a8e3d828a22861bd292ca8.tar.xz
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.
Diffstat (limited to 'm_config.h')
-rw-r--r--m_config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/m_config.h b/m_config.h
index 75dd85ac14..91ee7ffe43 100644
--- a/m_config.h
+++ b/m_config.h
@@ -47,6 +47,8 @@ struct m_config_option {
struct m_config_option *next;
// Full name (ie option:subopt).
char *name;
+ // Compiled without support for this option? If so set to name of feature
+ char *disabled_feature;
// Option description.
const struct m_option *opt;
// Save slot stack.