diff dynload/dynload.h @ 242:85b61e8facfe

dynload: - added new function dlGetLibraryPath to get path of already loaded lib - covered new function in dynload_plain test - cleanups/cosmetics for consistency
author Tassilo Philipp
date Thu, 04 May 2017 13:42:17 +0200
parents 3e629dc19168
children f5577f6bf97a
line wrap: on
line diff
--- a/dynload/dynload.h	Tue May 02 03:49:56 2017 +0200
+++ b/dynload/dynload.h	Thu May 04 13:42:17 2017 +0200
@@ -36,17 +36,21 @@
 #define DL_API
 #endif
 
-/* --- public api ---------------------------------------------------------- */
 
 /* shared library loading and explicit symbol resolving */
+/* dlLoadLibrary will search for specified lib (e.g. as leaf name, only), */
+/* to the platforms dynamic linking style */
 
 typedef struct DLLib_ DLLib;
 
-DL_API DLLib* dlLoadLibrary(const char* libpath);
-DL_API void   dlFreeLibrary(DLLib* pLib);
-DL_API void*  dlFindSymbol(DLLib* pLib, const char* pSymbolName);
+DL_API DLLib* dlLoadLibrary   (const char* libPath);
+DL_API void   dlFreeLibrary   (DLLib* pLib);
+DL_API void*  dlFindSymbol    (DLLib* pLib, const char* pSymbolName);
+DL_API int    dlGetLibraryPath(DLLib* pLib, char* sOut, int bufSize);
+
 
 /* symbol table enumeration - only for symbol lookup, not resolve */
+/* note that dlSymsInit does not search library paths */
 
 typedef struct DLSyms_ DLSyms;