summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-21 18:17:52 +0000
committermidipix <writeonce@midipix.org>2025-06-21 18:17:52 +0000
commit130e2180398d23fec3228f9507d84791e738b826 (patch)
tree247dd20e4950cdb0e0442f86db4cacbd3e7ce484 /src
parent85b7ff078d0a71e65174c18a30ac62f923ccf8d7 (diff)
downloadsltdl-130e2180398d23fec3228f9507d84791e738b826.tar.bz2
sltdl-130e2180398d23fec3228f9507d84791e738b826.tar.xz
api: lt_dlseterror(): initial implementation.HEADmain
Diffstat (limited to 'src')
-rw-r--r--src/core/lt_core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/lt_core.c b/src/core/lt_core.c
index e3cadd4..031701a 100644
--- a/src/core/lt_core.c
+++ b/src/core/lt_core.c
@@ -130,3 +130,10 @@ const char * lt_dlerror(void)
return errdesc;
}
+
+int lt_dlseterror(int errcode)
+{
+ lt_slock();
+ lt_sunlock(0,errcode);
+ return 0;
+}