From 00c6e3575d56e982e3528c43d73eb588ff3ff7ac Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 13 Jun 2010 15:27:29 +0200 Subject: renamed wolf_library_get_func to wolf_library_get as we can load variables in DLLs added tests for variables and structs in DLLs (Windows) --- include/wolf/library/loader.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/wolf/library/loader.h b/include/wolf/library/loader.h index 2f37da2..585851d 100644 --- a/include/wolf/library/loader.h +++ b/include/wolf/library/loader.h @@ -108,8 +108,9 @@ wolf_error_t wolf_library_unload( wolf_library_p library ); char *wolf_library_error_msg( const wolf_library_p library, char *buf, size_t buflen ); /** - * Gets a symbol (a function) from the library object. It has to be - * casted properly to the function you are expecting to call using + * Gets a symbol from the library object. It has either to be properly + * cast to the variable to use or has to be cast to the function you are + * expecting to call by using * WOLF_LIBRARY_FUNC_CAST( symbol, func_t, func ). * * @param library the library object @@ -118,7 +119,7 @@ char *wolf_library_error_msg( const wolf_library_p library, char *buf, size_t bu * * @return a pointer to the retrieved symbol */ -WOLF_LIBRARY_FUNCPTR wolf_library_get_func( const wolf_library_p library, const char *name, wolf_error_t *error ); +WOLF_LIBRARY_FUNCPTR wolf_library_get( const wolf_library_p library, const char *name, wolf_error_t *error ); /** @} */ /* @addtogroup wolf_library */ -- cgit v1.2.3-54-g00ecf