dlfcn-util: add dlsym_many_and_warn() helper

When we dlopen() some library we most likely will resolve more than a
few symbols, hence add a helper that makes it easy.
This commit is contained in:
Lennart Poettering
2020-06-25 09:27:11 +02:00
parent e60d3b13df
commit 49b19567d6
3 changed files with 43 additions and 0 deletions
+2
View File
@@ -6,3 +6,5 @@
#include "macro.h"
DEFINE_TRIVIAL_CLEANUP_FUNC(void*, dlclose);
int dlsym_many_and_warn(void *dl, int level, ...);