diff options
author | midipix <writeonce@midipix.org> | 2025-06-20 08:54:22 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-06-20 09:07:44 +0000 |
commit | f8058261c3c45da8391de887b2eb89b98d146b6a (patch) | |
tree | 0a1a5d09c14cfab9e64ee8de16ecee749fee64ca | |
parent | 1784780e14974a6833e24c312f2962fa79cc12e2 (diff) | |
download | sltdl-f8058261c3c45da8391de887b2eb89b98d146b6a.tar.bz2 sltdl-f8058261c3c45da8391de887b2eb89b98d146b6a.tar.xz |
enum sltdl_error: added cannot-open, cannot-close, and symbol-not-found errors.
-rw-r--r-- | include/sltdl/sltdl.h | 3 | ||||
-rw-r--r-- | src/core/lt_core.c | 3 |
2 files changed, 6 insertions, 0 deletions
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; |