summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-20 06:15:13 +0000
committermidipix <writeonce@midipix.org>2025-06-20 06:15:13 +0000
commit1accaeff874ee8676a13ba54b0381065bc33eac3 (patch)
tree1df9b93f3e791aa6b03c99961d41e7f9270dd460
parent6e95252bc1d2ed235d9e86bd99973e3da0739a1c (diff)
downloadsltdl-1accaeff874ee8676a13ba54b0381065bc33eac3.tar.bz2
sltdl-1accaeff874ee8676a13ba54b0381065bc33eac3.tar.xz
Added lt_dlloader_add() and lt_dlloader_find() as stubs.
-rw-r--r--include/sltdl/sltdl.h4
-rw-r--r--src/core/lt_path.c12
2 files changed, 16 insertions, 0 deletions
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;
+}