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:
Markus Mäkelä
2017-01-03 14:33:44 +02:00
parent ae0577c695
commit b00e0328d5
51 changed files with 87 additions and 56 deletions

View File

@ -194,7 +194,7 @@ void *load_module(const char *module, const char *type)
return NULL;
}
void *sym = dlsym(dlhandle, "GetModuleObject");
void *sym = dlsym(dlhandle, MXS_MODULE_SYMBOL_NAME);
if (sym == NULL)
{