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); +}