nn_engine_load

Function nn_engine_load 

Source
pub unsafe extern "C" fn nn_engine_load(
    engine: *mut NNEngine,
    plugin: *const c_char,
) -> NNError
Expand description

Loads the plugin to provided engine object. The plugin should point to an engine plugin library either as an absolute or relative path or be found in the standard OS search path for shared libraries.

@param engine Pointer to the engine object. @param plugin String of the absolute or relative path to the plugin.

@return NN_ERROR_INVALID ENGINE given the engine pointer is NULL or the plugin does not have the necessary functions. @return NN_ERROR_MISSING_RESOURCE given the plugin dll cannot be found. @return The error returned by the plugin’s init function given a valid engine and dll.

@public @memberof NNEngine @since 2.0