aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_init.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-14 22:29:46 +0100
committerMax Kellermann <max@duempel.org>2009-12-14 23:16:18 +0100
commit786c1f035f99f3a396dfd52a469601163de3e9af (patch)
tree152f9a1e628d1eb8bdb0f67fa6348b88d98cfb7d /src/input_init.h
parentf70d2f58a1ac221d488a4fbb2fda39d83048ec53 (diff)
downloadmpd-786c1f035f99f3a396dfd52a469601163de3e9af.tar.gz
mpd-786c1f035f99f3a396dfd52a469601163de3e9af.tar.xz
mpd-786c1f035f99f3a396dfd52a469601163de3e9af.zip
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.
Diffstat (limited to '')
-rw-r--r--src/input_init.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/input_init.h b/src/input_init.h
index 6266a84fb..8416de59e 100644
--- a/src/input_init.h
+++ b/src/input_init.h
@@ -22,10 +22,17 @@
#include "check.h"
+#include <glib.h>
+#include <stdbool.h>
+
/**
* Initializes this library and all input_stream implementations.
+ *
+ * @param error_r location to store the error occuring, or NULL to
+ * ignore errors
*/
-void input_stream_global_init(void);
+bool
+input_stream_global_init(GError **error_r);
/**
* Deinitializes this library and all input_stream implementations.