diff options
author | midipix <writeonce@midipix.org> | 2025-06-19 18:01:51 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-06-20 03:54:34 +0000 |
commit | 59de52cdcf5a6d3fc6045826391d81a0f96820a6 (patch) | |
tree | f5f998441b9715fd7636a1c839756e67c77973f5 | |
parent | d308e4a5ab719e540be0df779efba6fd490495e1 (diff) | |
download | sltdl-59de52cdcf5a6d3fc6045826391d81a0f96820a6.tar.bz2 sltdl-59de52cdcf5a6d3fc6045826391d81a0f96820a6.tar.xz |
sltdl.h: provide definitions for lt_preloaded_symbols & lt_dlsymlist, annotate.
-rw-r--r-- | include/sltdl/sltdl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sltdl/sltdl.h b/include/sltdl/sltdl.h index cc3c58e..68cc92e 100644 --- a/include/sltdl/sltdl.h +++ b/include/sltdl/sltdl.h @@ -20,10 +20,26 @@ extern "C" { /* */ /**********************************************************************/ +/* exclusively support colon as the path element separator */ #define LT_PATHSEP_CHAR ':' +/* default dlsym vtable, see also: slibtool -dlpreopen self */ +#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols + +/* binary-compatible type definitions */ +typedef void * lt_ptr; + +struct lt_symdef { + const char * name; + void * address; +}; + typedef struct lt_modctx * lt_dlhandle; typedef struct lt_modctl * lt_dladvise; +typedef struct lt_symdef lt_dlsymlist; + +/* dlsym vtable */ +extern const struct lt_symdef lt__PROGRAM__LTX_preloaded_symbols[]; /* global reference-counting */ lt_api int lt_dlinit(void); |