mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
modules: use the same name for the module_info in all modules
This commit is contained in:
parent
45eb2b85f0
commit
7f2501334d
12 changed files with 12 additions and 16 deletions
6
plugin.c
6
plugin.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue