mpv/options
wm4 e00aad18cb command: redo the property type
Instead of absuing m_option to store the property list, introduce a
separate type for properties. m_option is still used to handle data
types. The property declaration itself now never contains the option
type, and instead it's always queried with M_PROPERTY_GET_TYPE. (This
was already done with some properties, now all properties use it.)

This also fixes that the function signatures did not match the function
type with which these functions were called. They were called as:

   int (*)(const m_option_t*, int, void*, void*)

but the actual function signatures were:

   int (*)(m_option_t*, int, void*, MPContext *)

Two arguments were mismatched.

This adds one line per property implementation. With additional the
reordering of the parameters, this makes most of the changes in this
commit.
2014-06-13 02:11:39 +02:00
..
m_config.c options: remove OPT_FLAG_CONSTANTS 2014-06-13 02:10:45 +02:00
m_config.h options: remove a global variable 2014-06-11 00:39:14 +02:00
m_option.c options: remove OPT_FLAG_CONSTANTS 2014-06-13 02:10:45 +02:00
m_option.h options: remove OPT_FLAG_CONSTANTS 2014-06-13 02:10:45 +02:00
m_property.c command: redo the property type 2014-06-13 02:11:39 +02:00
m_property.h command: redo the property type 2014-06-13 02:11:39 +02:00
options.c options: remove use of an inverted option value 2014-06-13 02:06:03 +02:00
options.h options: remove use of an inverted option value 2014-06-13 02:06:03 +02:00
parse_commandline.c options: fix "-" (stdin) input 2014-05-06 01:06:07 +02:00
parse_commandline.h msg: remove global state 2013-12-21 23:11:12 +01:00
parse_configfile.c options: remove a global variable 2014-06-11 00:39:14 +02:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c config: fix --config-dir logic for global config files 2014-02-28 21:32:00 +01:00
path.h path: add function to split URL into prefix and path 2013-12-22 23:25:10 +01:00