diff options
author | wm4 <wm4@nowhere> | 2012-09-18 15:31:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:31 +0200 |
commit | 69ce4591d09f1fda85c6a71d452d26a2712cda4e (patch) | |
tree | 27284241b989d6d78710151617f98c698b4f6b69 /m_property.h | |
parent | f607d104b60b48cd293fbc057ba0a4ddaf9f8a73 (diff) | |
download | mpv-69ce4591d09f1fda85c6a71d452d26a2712cda4e.tar.bz2 mpv-69ce4591d09f1fda85c6a71d452d26a2712cda4e.tar.xz |
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.)
Diffstat (limited to 'm_property.h')
-rw-r--r-- | m_property.h | 11 |
1 files changed, 0 insertions, 11 deletions
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); - ///@} ///@} |