Top |
gboolean | bd_init () |
gboolean | bd_try_init () |
gboolean | bd_reinit () |
gboolean | bd_is_initialized () |
gboolean bd_init (BDPluginSpec **require_plugins
,BDUtilsLogFunc log_func
,GError **error
);
require_plugins |
|
[allow-none][array zero-terminated=1] |
log_func |
logging function to use. |
[allow-none][scope notified] |
error |
place to store error (if any). |
[out] |
gboolean bd_try_init (BDPluginSpec **require_plugins
,BDUtilsLogFunc log_func
,GError **error
);
Checks the state of the library and if it is uninitialized, tries to initialize it. Otherwise just returns early. The difference between:
<code>
if (!bd_is_initialized()
)
bd_init(None, None, &error);
</code>
and this function is that this function does the check and init in an atomic way (holding the lock preventing other threads from doing changes in between).
require_plugins |
|
[allow-none][array zero-terminated=1] |
log_func |
logging function to use. |
[allow-none][scope notified] |
error |
place to store error (if any). |
[out] |
gboolean bd_reinit (BDPluginSpec **require_plugins
,gboolean reload
,BDUtilsLogFunc log_func
,GError **error
);
require_plugins |
|
[allow-none][array zero-terminated=1] |
reload |
whether to reload the already loaded plugins or not |
|
log_func |
logging function to use or |
[allow-none][scope notified] |
error |
place to store error (if any). |
[out] |
whether the library was successfully initialized or not
If reload
is TRUE
all the plugins are closed and reloaded otherwise only
the missing plugins are loaded.