Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kDynamicLib.h
Go to the documentation of this file.
1 
10 #ifndef K_API_DYNAMIC_LIB_H
11 #define K_API_DYNAMIC_LIB_H
12 
13 #include <kApi/kApiDef.h>
14 
21 typedef k32s kDynamicLibOption;
22 
24 #define kDYNAMIC_LIB_OPTION_NONE (0x0)
25 #define kDYNAMIC_LIB_ALTERNATE_SEARCH_PATH (0x1)
26 
28 #include <kApi/Utils/kDynamicLib.x.h>
29 
39 //typedef kObject kDynamicLib; --forward-declared in kApiDef.x.h
40 
50 kFx(kStatus) kDynamicLib_Construct(kDynamicLib* library, const kChar* path, kAlloc allocator);
51 
62 kFx(kStatus) kDynamicLib_ConstructEx(kDynamicLib* library, const kChar* path, kDynamicLibOption options, kAlloc allocator);
63 
73 kFx(kStatus) kDynamicLib_FindFunction(kDynamicLib library, const kChar* name, kFunction* function);
74 
75 #endif
Abstract base class for memory allocator types.
Represents a single unit (byte) in a UTF-8 character.
kStatus kDynamicLib_Construct(kDynamicLib *library, const kChar *path, kAlloc allocator)
Constructs a kDynamicLib object.
kStatus kDynamicLib_ConstructEx(kDynamicLib *library, const kChar *path, kDynamicLibOption options, kAlloc allocator)
Constructs a kDynamicLib object with support for behavioral options.
Core Zen type declarations.
Represents a 32-bit signed integer.
void(kCall * kFunction)()
Generic pointer to function.
Definition: kApiDef.h:31
Represents an error code.
kStatus kDynamicLib_FindFunction(kDynamicLib library, const kChar *name, kFunction *function)
Resolves a function pointer by name from the dynamic library.
Represents a kDynamicLib construction option.