diff options
Diffstat (limited to '')
-rw-r--r-- | src/input_plugin.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/input_plugin.h b/src/input_plugin.h index 8f846373a..905596355 100644 --- a/src/input_plugin.h +++ b/src/input_plugin.h @@ -28,6 +28,20 @@ struct input_stream; struct input_plugin { + /** + * Global initialization. This method is called when MPD starts. + * + * @return true on success, false if the plugin should be + * disabled + */ + bool (*init)(void); + + /** + * Global deinitialization. Called once before MPD shuts + * down (only if init() has returned true). + */ + void (*finish)(void); + bool (*open)(struct input_stream *is, const char *url); void (*close)(struct input_stream *is); |