Game Develop Core: DynamicLibrariesTools.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
DynamicLibrariesTools.h
Go to the documentation of this file.
1
6 #ifndef DYNAMICLIBRARIESTOOLS_H
7 #define DYNAMICLIBRARIESTOOLS_H
8
9 #include <string>
10 #if defined(WINDOWS)
11 #ifndef _WINDEF_
12 class HINSTANCE__; // Forward or never
13 typedef HINSTANCE__* HINSTANCE;
14 #endif
15 typedef HINSTANCE Handle;
16 #elif defined(LINUX) || defined (MAC)
17 typedef void* Handle;
18 #else
19 #warning system not supported for dynamic libraries loading
20 typedef void* Handle;
21 #endif
22
23 namespace gd
24 {
25
32 Handle GD_CORE_API OpenLibrary(const char* path);
33
37 void* GD_CORE_API GetSymbol(Handle library, const char* name);
38
44 void GD_CORE_API CloseLibrary(Handle library);
45
49 std::string GD_CORE_API DynamicLibraryLastError();
50
51 #if defined(LINUX) || defined (MAC)
52
58 Handle GD_CORE_API SetLibraryGlobal(const char* path);
59 #endif
60
61 };
62
63 #endif // DYNAMICLIBRARIESTOOLS_H
64