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.
This commit is contained in:
Max Kellermann
2009-12-14 22:29:46 +01:00
parent f70d2f58a1
commit 786c1f035f
9 changed files with 79 additions and 15 deletions

View File

@@ -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