modules: use the same name for the module_info in all modules

This commit is contained in:
Daniel Eklöf 2019-01-12 20:34:43 +01:00
parent 45eb2b85f0
commit 7f2501334d
12 changed files with 12 additions and 16 deletions

View file

@ -61,12 +61,8 @@ plugin_load_module(const char *name)
tll_push_back(libs, ((struct plugin){strdup(name), lib}));
struct plugin *plug = &tll_back(libs);
/* TODO: use same name in all modules */
char sym[128];
snprintf(sym, sizeof(sym), "module_%s", name);
dlerror(); /* Clear previous error */
plug->sym = dlsym(lib, sym);
plug->sym = dlsym(lib, "module_info");
const char *dlsym_error = dlerror();
if (dlsym_error != NULL) {