From 2af0aaf1c0ae5ed331eb560acde54d076c2198e5 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 21 2019 14:43:47 +0000 Subject: lt_dlopenadvise(): initial implementation (with a no-op advise parameter). --- diff --git a/include/sltdl/sltdl.h b/include/sltdl/sltdl.h index 0b39935..dea0be7 100644 --- a/include/sltdl/sltdl.h +++ b/include/sltdl/sltdl.h @@ -37,6 +37,7 @@ lt_api const char * lt_dlgetsearchpath(void); /* module interfaces */ lt_api lt_dlhandle lt_dlopen(const char *); lt_api lt_dlhandle lt_dlopenext(const char *); +lt_api lt_dlhandle lt_dlopenadvise(const char *, struct lt_modctl *); #ifdef __cplusplus } diff --git a/src/core/lt_path.c b/src/core/lt_path.c index b0335de..37fec79 100644 --- a/src/core/lt_path.c +++ b/src/core/lt_path.c @@ -402,3 +402,9 @@ struct lt_modctx * lt_dlopenext(const char * module) lt_sunlock(0); return modctx; } + +struct lt_modctx * lt_dlopenadvise(const char * module, struct lt_modctl * modctl) +{ + (void)modctl; + return lt_dlopenext(module); +}