Function obs_sys::obs_open_module

source ·
pub unsafe extern "C" fn obs_open_module(
    module: *mut *mut obs_module_t,
    path: *const c_char,
    data_path: *const c_char
) -> c_int
Expand description

Opens a plugin module directly from a specific path.

If the module already exists then the function will return successful, and the module parameter will be given the pointer to the existing module.

This does not initialize the module, it only loads the module image. To initialize the module, call obs_init_module.

@param module The pointer to the created module. @param path Specifies the path to the module library file. If the extension is not specified, it will use the extension appropriate to the operating system. @param data_path Specifies the path to the directory where the module’s data files are stored. @returns MODULE_SUCCESS if successful MODULE_ERROR if a generic error occurred MODULE_FILE_NOT_FOUND if the module was not found MODULE_MISSING_EXPORTS if required exports are missing MODULE_INCOMPATIBLE_VER if incompatible version