diff options
author | wm4 <wm4@nowhere> | 2013-11-23 21:29:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-23 21:29:05 +0100 |
commit | 82605903469798f701706d8522ef8f461514ed08 (patch) | |
tree | 8cd8ec06a5b4003ed752c85941917ed19df6cceb /mpvcore/m_option.h | |
parent | acfeb869a38d7f7a4e5bb273082e9cc63a02b15a (diff) | |
download | mpv-82605903469798f701706d8522ef8f461514ed08.tar.bz2 mpv-82605903469798f701706d8522ef8f461514ed08.tar.xz |
options: provide a way for --vf to print custom help
Useful in rather special situations. See following commits.
Diffstat (limited to 'mpvcore/m_option.h')
-rw-r--r-- | mpvcore/m_option.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mpvcore/m_option.h b/mpvcore/m_option.h index 443412a035..5e3184a964 100644 --- a/mpvcore/m_option.h +++ b/mpvcore/m_option.h @@ -110,8 +110,10 @@ struct m_obj_desc { // This member is usually set by m_obj_list_find() only, and read by the // option parser. It's not used anywhere else. const char *init_options; - // Don't list entries with "help" + // Don't list entry with "help" bool hidden; + // Callback to print custom help if "help" is passed + void (*print_help)(void); }; // Extra definition needed for \ref m_option_type_obj_settings_list options. @@ -150,10 +152,6 @@ typedef struct m_obj_settings { */ extern const m_option_type_t m_option_type_obj_settings_list; -int m_obj_parse_sub_config(struct bstr opt_name, struct bstr name, - struct bstr *pstr, struct m_config *config, - int flags, char ***ret); - struct m_opt_choice_alternatives { char *name; int value; |