From b26fbeddd85aae6cda93d01335bed5f108a3ff57 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 11 Jan 2011 17:28:10 +0200 Subject: options: move -noconfig to option struct, simplify --- cfg-common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cfg-common.h') 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 -------------------- -- cgit v1.2.3