| 1 |
#include <blockdev/utils.h> |
| 2 |
#include <glib.h> |
| 3 |
|
| 4 |
#ifndef BD_LIB |
| 5 |
#define BD_LIB |
| 6 |
|
| 7 |
#include "plugins.h" |
| 8 |
|
| 9 |
/** |
| 10 |
* bd_init_error_quark: (skip) |
| 11 |
*/ |
| 12 |
GQuark bd_init_error_quark (void); |
| 13 |
#define BD_INIT_ERROR bd_init_error_quark () |
| 14 |
typedef enum { |
| 15 |
BD_INIT_ERROR_FAILED, |
| 16 |
BD_INIT_ERROR_PLUGINS_FAILED, |
| 17 |
BD_INIT_ERROR_NOT_IMPLEMENTED, |
| 18 |
} BDInitError; |
| 19 |
|
| 20 |
gboolean bd_init (BDPluginSpec **require_plugins, BDUtilsLogFunc log_func, GError **error); |
| 21 |
gboolean bd_ensure_init (BDPluginSpec **require_plugins, BDUtilsLogFunc log_func, GError **error); |
| 22 |
gboolean bd_reinit (BDPluginSpec **require_plugins, gboolean reload, BDUtilsLogFunc log_func, GError **error); |
| 23 |
gboolean bd_try_init(BDPluginSpec **request_plugins, BDUtilsLogFunc log_func, |
| 24 |
gchar ***loaded_plugin_names, GError **error); |
| 25 |
gboolean bd_try_reinit (BDPluginSpec **require_plugins, gboolean reload, BDUtilsLogFunc log_func, |
| 26 |
gchar ***loaded_plugin_names, GError **error); |
| 27 |
gboolean bd_is_initialized (void); |
| 28 |
|
| 29 |
#endif /* BD_LIB */ |