summaryrefslogtreecommitdiffstats
path: root/m_property.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-22 08:04:08 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:32 +0200
commit84af1733800fd78af61b2ebf5be10673192b68fe (patch)
tree8d1efba46dfb2af05e594360c90c2b2d63c670e3 /m_property.h
parentb591688a2774f1142a56e9c2034ecd3002fdb8d8 (diff)
downloadmpv-84af1733800fd78af61b2ebf5be10673192b68fe.tar.bz2
mpv-84af1733800fd78af61b2ebf5be10673192b68fe.tar.xz
commands: cosmetics: rename things
This is Better (tm). The only actual change is that with M_PROPERTY_SET_STRING, the option parser will use the property name, instead whatever was set in the name field of the option returned by M_PROPERTY_GET_TYPE. In most cases, these should be the same, though.
Diffstat (limited to 'm_property.h')
-rw-r--r--m_property.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/m_property.h b/m_property.h
index 249a22e969..b5b8af26ee 100644
--- a/m_property.h
+++ b/m_property.h
@@ -52,19 +52,19 @@ enum mp_property_action {
// arg: struct m_property_switch_arg*
M_PROPERTY_SWITCH,
+ // Get a string containing a parsable representation.
+ // Can't be overridden by property implementations.
+ // arg: char**
+ M_PROPERTY_GET_STRING,
+
// Set a new value from a string. The property wrapper parses this using the
// parse function provided by the property type.
// Can't be overridden by property implementations.
// arg: char*
- M_PROPERTY_PARSE,
-
- // Get a string containing a parsable representation.
- // Can't be overridden by property implementations.
- // arg: char**
- M_PROPERTY_TO_STRING,
+ M_PROPERTY_SET_STRING,
// Pass down an action to a sub-property.
- // arg: struct m_property_action_arg*
+ // arg: struct m_property_action_arg*
M_PROPERTY_KEY_ACTION,
};