From 864cd6ee183952d233da889147f0b419ecd8989d Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 17 May 2010 22:45:50 +0200 Subject: added more documentation and dlopen/dlclose, must backport shared library building from SMERP first --- include/wolf/library/loader.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/wolf/library/loader.h b/include/wolf/library/loader.h index 233cd8c..85195a7 100644 --- a/include/wolf/library/loader.h +++ b/include/wolf/library/loader.h @@ -54,8 +54,13 @@ wolf_library_p wolf_library_load( const char *name, wolf_error_t *error ); * Free up resources used by the library object. * * @param demon the library object to free + * + * @return WOLF_OK if library has been unloaded, + * WOLF_ERR_INTERNAL_STATE if the library handle is in an illegal state + * (like double freeing the same library) */ -void wolf_library_unload( wolf_library_p library ); + +wolf_error_t wolf_library_unload( wolf_library_p library ); #if 0 -- cgit v1.2.3-54-g00ecf