From f8058261c3c45da8391de887b2eb89b98d146b6a Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 20 Jun 2025 08:54:22 +0000 Subject: enum sltdl_error: added cannot-open, cannot-close, and symbol-not-found errors. --- include/sltdl/sltdl.h | 3 +++ src/core/lt_core.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/sltdl/sltdl.h b/include/sltdl/sltdl.h index cb17c4b..a0691e9 100644 --- a/include/sltdl/sltdl.h +++ b/include/sltdl/sltdl.h @@ -42,6 +42,9 @@ enum sltdl_error { SLTDL_ERR_PATH_INVALID_MARK, SLTDL_ERR_PATH_INVALID_LEN, SLTDL_ERR_PATH_NO_ENTRY, + SLTDL_ERR_CANNOT_OPEN, + SLTDL_ERR_CANNOT_CLOSE, + SLTDL_ERR_SYMBOL_NOT_FOUND, SLTDL_ERR_CAP, }; diff --git a/src/core/lt_core.c b/src/core/lt_core.c index 7091981..e3cadd4 100644 --- a/src/core/lt_core.c +++ b/src/core/lt_core.c @@ -27,6 +27,9 @@ static const char * lt_dlerror_desc[] = { [SLTDL_ERR_PATH_INVALID_MARK] = "invalid path (mark not within range)", [SLTDL_ERR_PATH_INVALID_LEN] = "invalid path (string too long)", [SLTDL_ERR_PATH_NO_ENTRY] = "invalid path (not found)", + [SLTDL_ERR_CANNOT_OPEN] = "could not open module", + [SLTDL_ERR_CANNOT_CLOSE] = "could not close module", + [SLTDL_ERR_SYMBOL_NOT_FOUND] = "symbol not found", }; static int lt_refs = 0; -- cgit v1.2.3