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:
@ -193,7 +193,7 @@ protected:
|
||||
* The plugin function @c GetModuleObject is then implemented as follows:
|
||||
*
|
||||
* @code
|
||||
* extern "C" MODULE_INFO* GetModuleObject()
|
||||
* extern "C" MODULE_INFO* MXS_CREATE_MODULE()
|
||||
* {
|
||||
* return &MyFilter::s_object;
|
||||
* };
|
||||
|
Reference in New Issue
Block a user