Create a macro for module declarations
The modules are now declared with a common macro. This allows future additions to the module loading process while also making the loaded symbol name a constant.
This commit is contained in:
@ -61,7 +61,7 @@ static CLI_INSTANCE *instances;
|
||||
*
|
||||
* @return The module object
|
||||
*/
|
||||
MODULE_INFO* GetModuleObject()
|
||||
MODULE_INFO* MXS_CREATE_MODULE()
|
||||
{
|
||||
MXS_NOTICE("Initialise debug CLI router module.");
|
||||
spinlock_init(&instlock);
|
||||
|
Reference in New Issue
Block a user