diff options
author | wm4 <wm4@nowhere> | 2014-01-16 23:03:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-16 23:06:41 +0100 |
commit | 82067e6ac37f73099923c86cf38fc44100a8d3c2 (patch) | |
tree | 2c9c2be40b9211cafe64cd8df63be28e98fc97bc /options/m_option.h | |
parent | 68f46675bc3a9a9f3f32ff8bf1ca1e444fcec231 (diff) | |
download | mpv-82067e6ac37f73099923c86cf38fc44100a8d3c2.tar.bz2 mpv-82067e6ac37f73099923c86cf38fc44100a8d3c2.tar.xz |
options: add key/value pair list option type
Diffstat (limited to 'options/m_option.h')
-rw-r--r-- | options/m_option.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/options/m_option.h b/options/m_option.h index 7f9b89bea1..9178231b2b 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -46,6 +46,7 @@ extern const m_option_type_t m_option_type_float; extern const m_option_type_t m_option_type_double; extern const m_option_type_t m_option_type_string; extern const m_option_type_t m_option_type_string_list; +extern const m_option_type_t m_option_type_keyvalue_list; extern const m_option_type_t m_option_type_time; extern const m_option_type_t m_option_type_rel_time; extern const m_option_type_t m_option_type_choice; @@ -199,6 +200,7 @@ union m_option_value { double double_; char *string; char **string_list; + char **keyvalue_list; int imgfmt; unsigned int fourcc; int afmt; @@ -534,6 +536,9 @@ extern const char m_option_path_separator; #define OPT_STRINGLIST(...) \ OPT_GENERAL(char**, __VA_ARGS__, .type = &m_option_type_string_list) +#define OPT_KEYVALUELIST(...) \ + OPT_GENERAL(char**, __VA_ARGS__, .type = &m_option_type_keyvalue_list) + #define OPT_PATHLIST(...) \ OPT_GENERAL(char**, __VA_ARGS__, .type = &m_option_type_string_list, \ .priv = (void *)&m_option_path_separator) |