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.
This commit is contained in:
Max Kellermann
2009-12-14 22:29:46 +01:00
parent f70d2f58a1
commit 786c1f035f
9 changed files with 79 additions and 15 deletions

View File

@@ -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.