From 786c1f035f99f3a396dfd52a469601163de3e9af Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Dec 2009 22:29:46 +0100 Subject: input_plugin: method init() returns errors with GError Not used by any plugin currently, but this eliminates the g_error() call in input_plugin_config(), so it's worth it. --- src/input_plugin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/input_plugin.h') diff --git a/src/input_plugin.h b/src/input_plugin.h index f38174d4..b0ba3795 100644 --- a/src/input_plugin.h +++ b/src/input_plugin.h @@ -35,10 +35,12 @@ struct input_plugin { /** * Global initialization. This method is called when MPD starts. * + * @param error_r location to store the error occuring, or + * NULL to ignore errors * @return true on success, false if the plugin should be * disabled */ - bool (*init)(const struct config_param *param); + bool (*init)(const struct config_param *param, GError **error_r); /** * Global deinitialization. Called once before MPD shuts -- cgit v1.2.3