summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-24 02:10:37 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-24 02:41:29 +0300
commitf8934a5f12aea53a57b728ad0b56d6198a545e8c (patch)
tree101e7bf51cb1a4f0a1ef2c3aeb21cec64c587f68 /cfg-common.h
parent70e0372a51ec0d040e996d56101b731a4b72d11d (diff)
downloadmpv-f8934a5f12aea53a57b728ad0b56d6198a545e8c.tar.bz2
mpv-f8934a5f12aea53a57b728ad0b56d6198a545e8c.tar.xz
Modify option helper macros
Give them a OPT_ prefix, move them to m_option.h, move the "flags" parameter to third position (so all start with option name, field name, flags) and use "&m_option_type_x" in them instead of the indirect #define "CONF_TYPE_X".
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/cfg-common.h b/cfg-common.h
index 7fb13bf0b9..ddac0acdac 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -379,11 +379,4 @@ extern const m_option_t xvid_dec_opts[];
int dvd_parse_chapter_range(const m_option_t*, const char*);
-#define FLAG_ON(optname, varname, flags) {optname, NULL, CONF_TYPE_FLAG, flags, 0, 1, NULL, 1, offsetof(struct MPOpts, varname)}
-#define FLAG_OFF(optname, varname, flags) {optname, NULL, CONF_TYPE_FLAG, flags, 1, 0, NULL, 1, offsetof(struct MPOpts, varname)}
-#define FLAG_CONSTANTS(optname, varname, offvalue, value, flags) {optname, NULL, CONF_TYPE_FLAG, flags, offvalue, value, NULL, 1, offsetof(struct MPOpts, varname)}
-#define STRINGLIST(optname, varname, flags) {optname, NULL, CONF_TYPE_STRING_LIST, flags, 0, 0, NULL, 1, offsetof(struct MPOpts, varname)}
-#define INTRANGE(optname, varname, min, max, flags) {optname, NULL, CONF_TYPE_INT, (flags)|CONF_RANGE, min, max, NULL, 1, offsetof(struct MPOpts, varname)}
-#define FLOATRANGE(optname, varname, min, max, flags) {optname, NULL, CONF_TYPE_FLOAT, (flags)|CONF_RANGE, min, max, NULL, 1, offsetof(struct MPOpts, varname)}
-
#endif /* MPLAYER_CFG_COMMON_H */