From cfb350f4f01f28cdd6fa973602bd45681a64cf46 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Mar 2009 23:08:17 +0100 Subject: input: pass config_param to input_plugin.init() Allow input plugins to configure with an "input" block in mpd.conf. Also allow the user to disable a plugin completely. --- src/input_plugin.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/input_plugin.h') diff --git a/src/input_plugin.h b/src/input_plugin.h index 905596355..6de82653a 100644 --- a/src/input_plugin.h +++ b/src/input_plugin.h @@ -25,16 +25,19 @@ #include #include +struct config_param; struct input_stream; struct input_plugin { + const char *name; + /** * Global initialization. This method is called when MPD starts. * * @return true on success, false if the plugin should be * disabled */ - bool (*init)(void); + bool (*init)(const struct config_param *param); /** * Global deinitialization. Called once before MPD shuts -- cgit v1.2.3