summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-20 08:39:30 +0000
committermidipix <writeonce@midipix.org>2025-06-20 08:50:00 +0000
commit1784780e14974a6833e24c312f2962fa79cc12e2 (patch)
treec57d75f2cd664d11d713807b7e47661dcb76b70b /include
parent1accaeff874ee8676a13ba54b0381065bc33eac3 (diff)
downloadsltdl-1784780e14974a6833e24c312f2962fa79cc12e2.tar.bz2
sltdl-1784780e14974a6833e24c312f2962fa79cc12e2.tar.xz
api: move enum sltdl_error from an internal header to the public sltdl.h.
Diffstat (limited to 'include')
-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 2a03d6f..cb17c4b 100644
--- a/include/sltdl/sltdl.h
+++ b/include/sltdl/sltdl.h
@@ -29,6 +29,22 @@ extern "C" {
/* default dlsym vtable, see also: slibtool -dlpreopen self */
#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
+enum sltdl_error {
+ SLTDL_ERR_OK,
+ SLTDL_ERR_SYSTEM_ERROR,
+ SLTDL_ERR_DLFCN_ERROR,
+ SLTDL_ERR_SLTDL_ERROR,
+ SLTDL_ERR_DLEXIT_REF_COUNT,
+ SLTDL_ERR_MODULE_REF_COUNT,
+ SLTDL_ERR_MODULE_PTR_INVALID,
+ SLTDL_ERR_PATH_INVALID_FIRST_CHAR,
+ SLTDL_ERR_PATH_INVALID_SEPARATTOR_CHAR,
+ SLTDL_ERR_PATH_INVALID_MARK,
+ SLTDL_ERR_PATH_INVALID_LEN,
+ SLTDL_ERR_PATH_NO_ENTRY,
+ SLTDL_ERR_CAP,
+};
+
/* loader priority */
enum lt_dlpriority {
LT_DLLOADER_PREPEND,