mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-15 16:05:38 +02:00
modules, particles: type-specific filename prefix
Instead of naming the shared libraries libfoo.so, add a type-specific prefix: module_foo.so, or particle_foo.so
This commit is contained in:
parent
ec4a47e5db
commit
45280416ff
3 changed files with 7 additions and 1 deletions
4
plugin.c
4
plugin.c
|
@ -53,7 +53,9 @@ plugin_load(const char *name, enum plugin_type type)
|
|||
}
|
||||
|
||||
char path[128];
|
||||
snprintf(path, sizeof(path), "lib%s.so", name);
|
||||
snprintf(
|
||||
path, sizeof(path), "%s_%s.so",
|
||||
type == PLUGIN_MODULE ? "module" : "particle", name);
|
||||
|
||||
/* Not loaded - do it now */
|
||||
void *lib = dlopen(path, RTLD_LOCAL | RTLD_NOW);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue