Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kPlugin.h
Go to the documentation of this file.
1
10 #ifndef K_API_PLUGIN_H
11 #define K_API_PLUGIN_H
12
13 #include <kApi/kApiDef.h>
14 #include <kApi/Utils/kPlugin.x.h>
15
26 //typedef kObject kPlugin; --forward-declared in kApiDef.x.h
27
39 kFx(kStatus) kPlugin_Construct(kPlugin* plugin, const kChar* path, kAlloc allocator);
40
55 kFx(kStatus) kPlugin_ConstructEx(kPlugin* plugin, const kChar* path, kVersion requiredPlatform, kAlloc allocator);
56
64 kInlineFx(kAssembly) kPlugin_Assembly(kPlugin plugin)
65 {
66 kObj(kPlugin, plugin);
67
68 return obj->assembly;
69 }
70
78 kInlineFx(kDynamicLib) kPlugin_Library(kPlugin plugin)
79 {
80 kObj(kPlugin, plugin);
81
82 return obj->library;
83 }
84
85 #endif
kAssembly
Represents a library of types.
kPlugin::kPlugin_Assembly
kAssembly kPlugin_Assembly(kPlugin plugin)
Gets the assembly associated with this plugin.
Definition: kPlugin.h:64
kAlloc
Abstract base class for memory allocator types.
kInlineFx
#define kInlineFx(TYPE)
Inline method declaration helper.
Definition: kApiDef.h:26
kChar
Represents a single unit (byte) in a UTF-8 character.
kPlugin::kPlugin_Library
kDynamicLib kPlugin_Library(kPlugin plugin)
Gets the library associated with this plugin.
Definition: kPlugin.h:78
kPlugin
Represents a dynamically loaded assembly.
kPlugin::kPlugin_ConstructEx
kStatus kPlugin_ConstructEx(kPlugin *plugin, const kChar *path, kVersion requiredPlatform, kAlloc allocator)
Constructs a kPlugin object.
kPlugin::kPlugin_Construct
kStatus kPlugin_Construct(kPlugin *plugin, const kChar *path, kAlloc allocator)
Constructs a kPlugin object.
kObj
#define kObj(TypeName_T, T_object)
Declares a local "obj" (this-pointer) variable and initializes it from a type-checked object handle...
Definition: kApiDef.h:2858
kApiDef.h
Core Zen type declarations.
kVersion
Represents a version number.
kStatus
Represents an error code.
kDynamicLib
Represents a dynamically loaded library.