From 69ce4591d09f1fda85c6a71d452d26a2712cda4e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 18 Sep 2012 15:31:46 +0200 Subject: commands: generally handle property formatting with m_option Use the m_option code by default to format property values, instead of having separate code in m_property. To facilitate that, add a pretty_print callback to option types. These format values in a more human readable and user friendly way, as opposed to the print callback, which produces parseable values. This also changes the strings used with flags. Instead of "enabled" and "disabled", flags are formatted as "yes" and "no". (We could use the pretty_print callback to deal with this, but we don't for consistency.) --- m_property.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'm_property.h') diff --git a/m_property.h b/m_property.h index 180dbbf618..462dad57fc 100644 --- a/m_property.h +++ b/m_property.h @@ -190,24 +190,13 @@ int m_property_float_ro(const m_option_t* prop,int action, int m_property_float_range(const m_option_t* prop,int action, void* arg,float* var); -/// float with a print function which print the time in ms -int m_property_delay(const m_option_t* prop,int action, - void* arg,float* var); - /// Implement get, print int m_property_double_ro(const m_option_t* prop,int action, void* arg,double var); -/// Implement print -int m_property_time_ro(const m_option_t* prop,int action, - void* arg,double var); - /// get/print the string int m_property_string_ro(const m_option_t* prop,int action,void* arg, char* str); -/// get/print a bitrate -int m_property_bitrate(const m_option_t* prop,int action,void* arg,int rate); - ///@} ///@} -- cgit v1.2.3