F.5. para_mod_load

Loads a module.

Synopsis. 

#include <parabellym/api.h>

int para_mod_load(const char *fname);

Arguments. 

fname
The name of the file with the module. Either absolute or relative to the process' working directory.

Access. 

Restricted to the loader.

Description. 

This function tells the system to load the specified module. Modules can be loaded multiple times.

Return value. 

PEC_SUCCESS
The module was installed.
PEC_MOD_NOT_LOADED
Could not read the specified file.
PEC_MOD_ENTRY_MISSING
The specified file does not have an para_mod_body function.
PEC_MOD_FAILED
Unknown error.