summaryrefslogtreecommitdiffstats
path: root/core/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-15 15:14:24 +0200
committerwm4 <wm4@nowhere>2013-05-15 15:14:24 +0200
commit894288457bb035127c7459c462bd711c6080572f (patch)
tree201622027a9e131d5660819d3a597a970802d21d /core/cfg-mplayer.h
parent4930681e7a361e108d9554fa0d8dd2d40d3b4c2e (diff)
downloadmpv-894288457bb035127c7459c462bd711c6080572f.tar.bz2
mpv-894288457bb035127c7459c462bd711c6080572f.tar.xz
options: add --version
Diffstat (limited to 'core/cfg-mplayer.h')
-rw-r--r--core/cfg-mplayer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 18a1c30324..21e694d06c 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -55,6 +55,9 @@ extern const m_option_t cdda_opts[];
extern int sws_flags;
extern const char pp_help[];
+static int print_version_opt(const m_option_t *opt, const char *name,
+ const char *param);
+
#ifdef CONFIG_RADIO
const m_option_t radioopts_conf[]={
{"device", &stream_radio_defaults.device, CONF_TYPE_STRING, 0, 0 ,0, NULL},
@@ -699,6 +702,7 @@ const m_option_t mplayer_opts[]={
{"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL},
{"help", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
{"h", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
+ {"version", (void *)print_version_opt, CONF_TYPE_PRINT_FUNC, CONF_NOCFG|CONF_GLOBAL|M_OPT_PRE_PARSE},
#ifdef CONFIG_ENCODING
OPT_STRING("o", encode_output.file, CONF_GLOBAL),