DSL
Macros | Functions
Dynamic Linking

Macros

#define DL_HANDLE   HANDLE
 
#define DL_SOEXT   "so"
 

Functions

DSL_API DL_HANDLE DSL_CC DL_Open (const char *fn)
 
DSL_API DL_HANDLE DSL_CC DL_FindAndOpen (const char *fn)
 Attempts to find the named library in common library folders (c:\windows\system32 on Windows, /usr/lib & /usr/local/lib on Linux, etc.)
 
DSL_API void *DSL_CC DL_GetAddress (DL_HANDLE hHandle, const char *name)
 
DSL_API void DSL_CC DL_Close (DL_HANDLE hHandle)
 
DSL_API const char *DSL_CC DL_LastError ()
 

Detailed Description

Functions for loading .DLL/.so files.
Windows: Uses LoadLibrary/GetProcAddress/FreeLibrary
Linux: Uses dlopen/dlsym/dlclose