From e3ae5918581f66ecece6959e3ac7d4d7ff2074f5 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 24 May 2010 21:25:13 +0200 Subject: updated todo list for library loader --- docs/libraries/README | 8 +++++++- src/library/loader.c | 2 +- 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; } -- cgit v1.2.3-54-g00ecf