From 1accaeff874ee8676a13ba54b0381065bc33eac3 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 20 Jun 2025 06:15:13 +0000 Subject: Added lt_dlloader_add() and lt_dlloader_find() as stubs. --- include/sltdl/sltdl.h | 4 ++++ src/core/lt_path.c | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/include/sltdl/sltdl.h b/include/sltdl/sltdl.h index db51e6f..2a03d6f 100644 --- a/include/sltdl/sltdl.h +++ b/include/sltdl/sltdl.h @@ -99,6 +99,10 @@ lt_api void * lt_dlsym(lt_dlhandle, const char *); lt_api int lt_dlclose(lt_dlhandle); lt_api const char * lt_dlerror(void); +/* custom loaders */ +lt_api int lt_dlloader_add(const struct lt_dlentry *); +lt_api const struct lt_dlentry * lt_dlloader_find(const char *); + #ifdef __cplusplus } #endif diff --git a/src/core/lt_path.c b/src/core/lt_path.c index c4e4793..c945b7f 100644 --- a/src/core/lt_path.c +++ b/src/core/lt_path.c @@ -576,3 +576,15 @@ int lt_dlforeachfile( return 0; } + +int lt_dlloader_add(const struct lt_dlentry * ldr) +{ + (void)ldr; + return -1; +} + +const struct lt_dlentry * lt_dlloader_find(const char * ldrname) +{ + (void)ldrname; + return 0; +} -- cgit v1.2.3