Beispiel #1
0
/**
 * requiem_deinit:
 *
 * Call this function if you're done using the library and want to free global
 * shared ressource allocated by librequiem.
 */
void requiem_deinit(void)
{
        requiem_list_t *iter = NULL;
        requiem_plugin_generic_t *plugin;

        if ( --librequiem_refcount != 0 )
                return;

        while ( (plugin = requiem_plugin_get_next(NULL, &iter)) )
                requiem_plugin_unload(plugin);

        _idmef_path_cache_destroy();
        requiem_option_destroy(NULL);
        variable_unset_all();

        tls_auth_deinit();
        gnutls_global_deinit();

        _requiem_thread_deinit();
}
Beispiel #2
0
/**
 * prelude_deinit:
 *
 * Call this function if you're done using the library and want to free global
 * shared ressource allocated by libprelude.
 */
void prelude_deinit(void)
{
        prelude_list_t *iter = NULL;
        prelude_plugin_generic_t *plugin;

        if ( --libprelude_refcount != 0 )
                return;

        while ( (plugin = prelude_plugin_get_next(NULL, &iter)) )
                prelude_plugin_unload(plugin);

        _idmef_path_cache_destroy();
        prelude_option_destroy(NULL);
        variable_unset_all();

        tls_auth_deinit();
        gnutls_global_deinit();

        _prelude_thread_deinit();
}