summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sltdl/sltdl.h1
-rw-r--r--src/core/lt_path.c6
2 files changed, 7 insertions, 0 deletions
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);
+}