diff options
author | midipix <writeonce@midipix.org> | 2019-12-18 16:27:44 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-12-21 14:43:47 +0000 |
commit | 2af0aaf1c0ae5ed331eb560acde54d076c2198e5 (patch) | |
tree | f77bfeddaaa5952a4804d07058d657e1887fcfce | |
parent | 303f79f2304d426064f9da83f733c682a7d4a86a (diff) | |
download | sltdl-2af0aaf1c0ae5ed331eb560acde54d076c2198e5.tar.bz2 sltdl-2af0aaf1c0ae5ed331eb560acde54d076c2198e5.tar.xz |
lt_dlopenadvise(): initial implementation (with a no-op advise parameter).
-rw-r--r-- | include/sltdl/sltdl.h | 1 | ||||
-rw-r--r-- | src/core/lt_path.c | 6 |
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); +} |