summaryrefslogtreecommitdiffstats
path: root/options/m_config.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-01 20:00:43 +0200
committerwm4 <wm4@nowhere>2016-09-01 20:00:43 +0200
commitd32bee5f019f2c51839df16b7c7955dc33651cbe (patch)
tree96424f3477a67ca6b5f6220295bf4c906ac6106a /options/m_config.h
parent17dbb39dec1fcd3280f86e480a7191b6f78cbbcc (diff)
downloadmpv-d32bee5f019f2c51839df16b7c7955dc33651cbe.tar.bz2
mpv-d32bee5f019f2c51839df16b7c7955dc33651cbe.tar.xz
command: add options to property list
Now options are accessible through the property list as well, which unifies them to a degree. Not all options support runtime changes (meaning affected components need to be restarted for the options to take effects). Remove from the manpage those properties which are cleanly mapped to options anyway. From the user-perspective they're just options available through the property interface.
Diffstat (limited to 'options/m_config.h')
-rw-r--r--options/m_config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/options/m_config.h b/options/m_config.h
index e6d093582f..4ac673859f 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -136,7 +136,7 @@ enum {
};
// Flags for safe option setting during runtime.
-#define M_SETOPT_RUNTIME (M_SETOPT_NO_FIXED | M_SETOPT_NO_PRE_PARSE)
+#define M_SETOPT_RUNTIME M_SETOPT_NO_FIXED
// Set the named option to the given string.
// flags: combination of M_SETOPT_* flags (0 for normal operation)
@@ -176,6 +176,9 @@ int m_config_parse_suboptions(struct m_config *config, char *name,
struct m_config_option *m_config_get_co(const struct m_config *config,
struct bstr name);
+int m_config_get_co_count(struct m_config *config);
+struct m_config_option *m_config_get_co_index(struct m_config *config, int index);
+
// Return the n-th option by position. n==0 is the first option. If there are
// less than (n + 1) options, return NULL.
const char *m_config_get_positional_option(const struct m_config *config, int n);