Function gnunet_sys::GNUNET_PLUGIN_load[][src]

pub unsafe extern "C" fn GNUNET_PLUGIN_load(
    library_name: *const c_char,
    arg: *mut c_void
) -> *mut c_void

Setup plugin (runs the “init” callback and returns whatever “init” returned). If “init” returns NULL, the plugin is unloaded.

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

@param library_name name of the plugin to load @param arg argument to the plugin initialization function @return whatever the initialization function returned, NULL on error