summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-05-24 21:25:13 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-05-24 21:25:13 +0200
commite3ae5918581f66ecece6959e3ac7d4d7ff2074f5 (patch)
tree62a8ee26fbc3e7abbf96d227829581a1f696d119
parentaaf753e2ff010aecb29f53b21bce12eb26ebde5e (diff)
downloadwolfbones-e3ae5918581f66ecece6959e3ac7d4d7ff2074f5.tar.gz
wolfbones-e3ae5918581f66ecece6959e3ac7d4d7ff2074f5.tar.bz2
updated todo list for library loader
-rw-r--r--docs/libraries/README8
-rw-r--r--src/library/loader.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/libraries/README b/docs/libraries/README
index f2ecb2a..ef32226 100644
--- a/docs/libraries/README
+++ b/docs/libraries/README
@@ -23,6 +23,12 @@ Some more unsorted links:
the dlerror odity around dlsym
Goal:
-- we want abstractions for varying versions of dlopen/LoadLibrary(Ex) etc.
+- we want abstractions for varying versions of
+ dlopen/LoadLibrary(Ex) etc. modern Unix and Win32 suffice, rest is easy to
+ add (Darwin, HPUX)
- only basic functionality, no module magic versions or other stuff, should
be in a separate library
+- have the error handling right
+- layer on top should support something like a module X in version
+ Major.Minor and a loader which checks what can be checked, should
+ also help us enumerate the symbols in a library (introspection)
diff --git a/src/library/loader.c b/src/library/loader.c
index 8419445..0bc214f 100644
--- a/src/library/loader.c
+++ b/src/library/loader.c
@@ -151,7 +151,7 @@ WOLF_LIBRARY_FUNCPTR wolf_library_get_func( const wolf_library_p l, const char *
#if defined _WIN32
ret = GetProcAddress( l->handle, name );
if( ret == NULL ) {
- wolf_system_error_msg( l->errbuf, INTERNAL_ERRBUF_SIZE );
+ wolf_system_error_msg( l->errbuf, INTERNAL_ERRBUF_SIZE );
*error = WOLF_ERR_INTERNAL;
return ret;
}