summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-11 17:28:10 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-11 17:28:10 +0200
commitb26fbeddd85aae6cda93d01335bed5f108a3ff57 (patch)
tree5f188a36267498b116eef50a60c8ca1f7f480822 /cfg-common.h
parent0b59e33b4e17fae9e0c318fcfeabba52e57dda4a (diff)
downloadmpv-b26fbeddd85aae6cda93d01335bed5f108a3ff57.tar.bz2
mpv-b26fbeddd85aae6cda93d01335bed5f108a3ff57.tar.xz
options: move -noconfig to option struct, simplify
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cfg-common.h b/cfg-common.h
index 7657864f02..e71ec8c0df 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -381,7 +381,8 @@ const m_option_t common_opts[] = {
{"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
#endif
{"codecpath", &codec_path, CONF_TYPE_STRING, 0, 0, 0, NULL},
- {"noconfig", (void *) noconfig_opts, CONF_TYPE_SUBCONFIG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 0, NULL},
+ OPT_CHOICE("noconfig", noconfig, CONF_GLOBAL | CONF_NOCFG | CONF_PRE_PARSE,
+ ({"off", 0}, {"user", 1}, {"system", 2}, {"all", 3})),
// ------------------------- stream options --------------------