summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/sltdl/sltdl.h3
-rw-r--r--src/core/lt_core.c3
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;