From a2d144fc8f146f96e4fe97b1b2c15828e24f8494 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 19:36:33 +0100 Subject: m_property: mp_msg conversions Includes some semi-crappy hacks to avoid changing too much code for this conversion (allowing NULL log argument for m_property_do()). --- options/m_property.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'options/m_property.h') diff --git a/options/m_property.h b/options/m_property.h index 8398ad321f..ae4b7716b6 100644 --- a/options/m_property.h +++ b/options/m_property.h @@ -23,6 +23,7 @@ #include struct m_option; +struct mp_log; extern const struct m_option_type m_option_type_dummy; @@ -106,11 +107,12 @@ enum mp_property_return { // action: one of m_property_action // ctx: opaque value passed through to property implementation // returns: one of mp_property_return -int m_property_do(const struct m_option* prop_list, const char* property_name, - int action, void* arg, void *ctx); +int m_property_do(struct mp_log *log, const struct m_option* prop_list, + const char* property_name, int action, void* arg, void *ctx); // Print a list of properties. -void m_properties_print_help_list(const struct m_option* list); +void m_properties_print_help_list(struct mp_log *log, + const struct m_option* list); // Expand a property string. // This function allows to print strings containing property values. -- cgit v1.2.3