From 8744a55869e9d0288bebf8f340d5186dc99922e9 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 21 Dec 2019 14:40:23 +0000 Subject: lt_dlerror(): initial implementation and integration. --- src/internal/sltdl_core.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/internal') diff --git a/src/internal/sltdl_core.h b/src/internal/sltdl_core.h index f74542e..35e1a24 100644 --- a/src/internal/sltdl_core.h +++ b/src/internal/sltdl_core.h @@ -1,7 +1,23 @@ #ifndef SLTDL_CORE_H #define SLTDL_CORE_H +enum sltdl_error { + SLTDL_OK, + SLTDL_SYSTEM_ERROR, + SLTDL_DLFCN_ERROR, + SLTDL_SLTDL_ERROR, + SLTDL_DLEXIT_REF_COUNT, + SLTDL_MODULE_REF_COUNT, + SLTDL_MODULE_PTR_INVALID, + SLTDL_PATH_INVALID_FIRST_CHAR, + SLTDL_PATH_INVALID_SEPARATTOR_CHAR, + SLTDL_PATH_INVALID_MARK, + SLTDL_PATH_INVALID_LEN, + SLTDL_PATH_NO_ENTRY, + SLTDL_ERROR_CAP, +}; + void lt_slock(void); -int lt_sunlock(int); +int lt_sunlock(int,int); #endif -- cgit v1.2.3