X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=sys_linux.c;h=1e675e4799a5865f88cba7deb9421d6d4f0d5d4e;hb=045140bdbfe11fb9d709bc485aa9bfb2d2c00174;hp=abe5a45476c168fbf986f30001ca8860439bd844;hpb=43ee5e136a693ac9cfb40cb03fceea7d3149104f;p=xonotic%2Fdarkplaces.git diff --git a/sys_linux.c b/sys_linux.c index abe5a454..1e675e47 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -19,8 +19,34 @@ #include #include +#include + #include "quakedef.h" +/* +=============================================================================== + +DLL MANAGEMENT + +=============================================================================== +*/ + +dllhandle_t Sys_LoadLibrary (const char* name) +{ + return dlopen (name, RTLD_LAZY); +} + +void Sys_UnloadLibrary (dllhandle_t handle) +{ + dlclose (handle); +} + +void* Sys_GetProcAddress (dllhandle_t handle, const char* name) +{ + return (void *)dlsym (handle, name); +} + + // ======================================================================= // General routines // =======================================================================