diff options
author | midipix <writeonce@midipix.org> | 2025-06-21 17:29:05 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-06-21 17:29:05 +0000 |
commit | 85b7ff078d0a71e65174c18a30ac62f923ccf8d7 (patch) | |
tree | 697fc1f89ac7702ac0230788e065290ab9efdaea | |
parent | 7ff5131f669b21ae12df7ca3c1dc37c2e316b349 (diff) | |
download | sltdl-85b7ff078d0a71e65174c18a30ac62f923ccf8d7.tar.bz2 sltdl-85b7ff078d0a71e65174c18a30ac62f923ccf8d7.tar.xz |
api: implemented lt_dlpreload_default() for backward compatibility.
-rw-r--r-- | include/sltdl/sltdl.h | 1 | ||||
-rw-r--r-- | src/core/lt_path.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sltdl/sltdl.h b/include/sltdl/sltdl.h index a2eee2a..f9cc483 100644 --- a/include/sltdl/sltdl.h +++ b/include/sltdl/sltdl.h @@ -130,6 +130,7 @@ lt_api const char * lt_dlerror(void); /* preloaded modules */ lt_api int lt_dlpreload_modctl(const struct lt_symdef *, enum sltdl_modctl); +lt_api int lt_dlpreload_default(const struct lt_symdef *); /* custom loaders */ lt_api int lt_dlloader_add(const struct lt_dlentry *); diff --git a/src/core/lt_path.c b/src/core/lt_path.c index cd95e0e..2017a95 100644 --- a/src/core/lt_path.c +++ b/src/core/lt_path.c @@ -685,3 +685,8 @@ int lt_dlpreload_modctl( { return lt_dlpreload_modctl_impl(symtbl,op); } + +int lt_dlpreload_default(const struct lt_symdef * symtbl) +{ + return lt_dlpreload_modctl_impl(symtbl,SLTDL_MODCTL_PRELOAD_DEFAULT); +} |