summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sltdl/sltdl.h16
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);