X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sys.h;h=cc0ced45acaa268ac3da034c04b537a68d06620a;hp=0c91f4d097021d4f5e7aaea6746ef6d09831e372;hb=bdffd88cf8584630d1e24363e75a969435af2809;hpb=e9c7b3e739719a2f84c2d583b6a6faf3661dbad0 diff --git a/sys.h b/sys.h index 0c91f4d0..cc0ced45 100644 --- a/sys.h +++ b/sys.h @@ -22,6 +22,33 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef SYS_H #define SYS_H + +// +// DLL management +// + +// Win32 specific +#ifdef WIN32 +# include +typedef HMODULE dllhandle_t; + +// Other platforms +#else + typedef void* dllhandle_t; +#endif + +typedef struct +{ + const char *name; + void **funcvariable; +} +dllfunction_t; + +dllhandle_t Sys_LoadLibrary (const char* name); +void Sys_UnloadLibrary (dllhandle_t handle); +void* Sys_GetProcAddress (dllhandle_t handle, const char* name); + + // // file IO //