From 6e95252bc1d2ed235d9e86bd99973e3da0739a1c Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 20 Jun 2025 05:47:12 +0000 Subject: sltdl.h: define struct lt_dlloader and related type definitions. --- include/sltdl/sltdl.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include') diff --git a/include/sltdl/sltdl.h b/include/sltdl/sltdl.h index 5d1b51b..db51e6f 100644 --- a/include/sltdl/sltdl.h +++ b/include/sltdl/sltdl.h @@ -52,6 +52,27 @@ typedef struct lt_modctx * lt_dlhandle; typedef struct lt_modctl * lt_dladvise; typedef struct lt_symdef lt_dlsymlist; +typedef void * lt_module_open (void *, const char *, struct lt_modctx *); +typedef int lt_module_close (void *, void *); +typedef void * lt_find_sym (void *, void *, const char *); +typedef int lt_dlloader_init (void *); +typedef int lt_dlloader_exit (void *); + + +struct lt_dlentry { + const char * name; + const char * sym_prefix; + lt_module_open * module_open; + lt_module_close * module_close; + lt_find_sym * find_sym; + lt_dlloader_init * dlloader_init; + lt_dlloader_exit * dlloader_exit; + lt_user_data dlloader_data; + enum lt_dlpriority priority; +}; + +typedef struct lt_dlentry lt_dlvtable; + /* dlsym vtable */ extern const struct lt_symdef lt__PROGRAM__LTX_preloaded_symbols[]; -- cgit v1.2.3