From 10437c35df5d3944625fa6cee05e565b0791fe15 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 17 Sep 2012 08:45:35 +0200 Subject: commands: rename "osdlevel" option and property, make it a choice Rename both the option and property to "osd-level", which fits a bit better with the general naming scheme. Make it a choice instead of an integer range. I failed to come up with good names for the various levels, so leave them as-is. Remove the useless property handler for the "loop" property too. --- m_property.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'm_property.c') diff --git a/m_property.c b/m_property.c index e75cbe43ac..fac3ec8285 100644 --- a/m_property.c +++ b/m_property.c @@ -274,19 +274,6 @@ int m_property_int_range(const m_option_t *prop, int action, return m_property_int_ro(prop, action, arg, *var); } -int m_property_choice(const m_option_t *prop, int action, - void *arg, int *var) -{ - switch (action) { - case M_PROPERTY_STEP_UP: - case M_PROPERTY_STEP_DOWN: - *var += action == M_PROPERTY_STEP_UP ? 1 : prop->max; - *var %= (int)prop->max + 1; - return 1; - } - return m_property_int_range(prop, action, arg, var); -} - int m_property_flag_ro(const m_option_t *prop, int action, void *arg, int var) { -- cgit v1.2.3