diff options
author | Max Kellermann <max@duempel.org> | 2009-03-02 23:08:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-02 23:08:17 +0100 |
commit | cfb350f4f01f28cdd6fa973602bd45681a64cf46 (patch) | |
tree | e2614273f1c259ff2d0bf7703057ee9e2ea165df /src/input_plugin.h | |
parent | 9a350acf0497acd19e05b77e6aa985552c13a94a (diff) | |
download | mpd-cfb350f4f01f28cdd6fa973602bd45681a64cf46.tar.gz mpd-cfb350f4f01f28cdd6fa973602bd45681a64cf46.tar.xz mpd-cfb350f4f01f28cdd6fa973602bd45681a64cf46.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/input_plugin.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stdbool.h> #include <sys/types.h> +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 |