summaryrefslogtreecommitdiffstats
path: root/m_option.h
diff options
context:
space:
mode:
Diffstat (limited to 'm_option.h')
-rw-r--r--m_option.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/m_option.h b/m_option.h
index 5b7e051290..de2854137d 100644
--- a/m_option.h
+++ b/m_option.h
@@ -507,5 +507,6 @@ static inline void m_option_free(const m_option_t *opt, void *dst)
#define OPT_HELPER_REMOVEPAREN(...) __VA_ARGS__
#define OPT_CHOICE(optname, varname, flags, choices) {optname, NULL, &m_option_type_choice, flags, 0, 0, (void *)&(const struct m_opt_choice_alternatives[]){OPT_HELPER_REMOVEPAREN choices, {NULL}}, 1, offsetof(struct MPOpts, varname)}
#define OPT_TIME(optname, varname, flags) {optname, NULL, &m_option_type_time, flags, 0, 0, NULL, 1, offsetof(struct MPOpts, varname)}
+#define OPT_ERRORMESSAGE(optname, message) {optname, message, CONF_TYPE_PRINT}
#endif /* MPLAYER_M_OPTION_H */