From 7bdee8f35ed0aa19c83377b7c264c51696f9653f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 20:04:49 +0100 Subject: m_option: add mp_log context to sub-module print_help callback --- options/m_option.c | 2 +- options/m_option.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'options') diff --git a/options/m_option.c b/options/m_option.c index f3b7afcd18..5b9654c744 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -2142,7 +2142,7 @@ static int m_obj_parse_sub_config(struct mp_log *log, struct bstr opt_name, print_help: ; if (config) { if (desc->print_help) - desc->print_help(); + desc->print_help(log); m_config_print_option_list(config); } else { mp_warn(log, "Option %.*s doesn't exist.\n", diff --git a/options/m_option.h b/options/m_option.h index 7caa103f2f..abc45b07aa 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -114,7 +114,7 @@ struct m_obj_desc { // Don't list entry with "help" bool hidden; // Callback to print custom help if "help" is passed - void (*print_help)(void); + void (*print_help)(struct mp_log *log); // Set by m_obj_list_find(). If the requested name is an old alias, this // is set to the old name (while the name field uses the new name). const char *replaced_name; -- cgit v1.2.3