|
Omega Security Services 0.7.3
|
#include <module.h>
Data Fields | |
| char * | name |
| char * | version |
| char * | author |
| long | api |
| int(* | mod_register )(void) |
| void(* | mod_unregister )(void) |
ModInfo - This structure holds module specific information, this is information that is not held to be true at all times, since the modules interact with it given that it is only used for basic checks :)
| name | - The module name -> This is just for personal referance as the core relies on aboslute paths to find and remove modules. |
| version | - The modules version in free form |
| abi | - The Binary interface version, this is the version of the API used to interact with this module. |
| mod_register | - The function called by the core when loading the module, and takes place in the registeration phase of the load. |
NOTE: this is a required function - Modules will fail to load if this is not specified.
| mod_unregister | - The function used when unloading a module from the core, takes place before the dlclose function is called, in the un-register phase |
NOTE: This function is not required modules, however will not unload if this is not specified.
| long api |
Definition at line 213 of file module.h.
Referenced by module_open().
| int(* mod_register)(void) |
Definition at line 215 of file module.h.
Referenced by module_open().
| void(* mod_unregister)(void) |
Definition at line 217 of file module.h.
Referenced by module_close(), module_open(), and purge_modules().