Function gnunet_sys::GNUNET_PLUGIN_load_all[][src]

pub unsafe extern "C" fn GNUNET_PLUGIN_load_all(
    basename: *const c_char,
    arg: *mut c_void,
    cb: GNUNET_PLUGIN_LoaderCallback,
    cb_cls: *mut c_void
)

Load all compatible plugins with the given base name.

Note that the library must export symbols called “basename_ANYTHING_init” and “basename_ANYTHING__done”. These will be called when the library is loaded and unloaded respectively.

@param basename basename of the plugins to load @param arg argument to the plugin initialization function @param cb function to call for each plugin found @param cb_cls closure for @a cb