Functions | |
const void * | ltrx_module_functions_lookup (const char *module_name) |
Reference another module. More... | |
void | ltrx_module_register (const struct ltrx_module_info *lmi) |
Register your module. More... | |
Modules contain blocks of code that may optionally be selected for loading onto the device.
Access is restricted to functions that are formally exported by the module.
Each module must provide a registration and a startup function that will be called during initialization. The registration function is <module name>_module_registration
and should contain all of the module's registration calls. The startup function is <module name>_module_startup
. All of the module registration functions are called before any of the startup functions, so at startup all of the registrations from other modules will be visible.
See the SDK sample modules for examples of its usage.
const void* ltrx_module_functions_lookup | ( | const char * | module_name | ) |
Reference another module.
Picks up the table of functions exported by another module.
Assign return value to g_<the_module>ExternalFunctionEntry_pointer
Where g_<the_module> is the name of the module you are referencing.
NULL | Lookup failed. |
[in] | module_name | Name of desired module. |
void ltrx_module_register | ( | const struct ltrx_module_info * | lmi | ) |
Register your module.
Register your module in its initialization, before running any of your code.
[in] | lmi | Registration information. Refer to structure generated by make: &g_<module_name>ModuleInfo |
Where <module_name> is the name of your module.