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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user