MkRuntimeC - define the class … More...
Topics | |
MkRuntimeC_Class_Define_C_API | |
MkRuntimeC - low level definition, access and cast … | |
Typedefs | |
typedef struct MkRuntimeS * | MK_RT |
class-shortcut for struct MkRuntimeS * , all shortcut using the XX_YYY syntax (only for public API) … | |
typedef const struct MkRuntimeS * | MK_RTN |
class-shortcut for const struct MkRuntimeS * , all const shortcut using the XX_YYYC syntax (only for public API) … | |
typedef struct MkRuntimeS | MK_RTR |
reference-shortcut for struct MkRuntimeS , all shortcut using the XX_YYYR syntax (only for public API) … | |
MkRuntimeC - Export - inline - interact with an external software | |
static MK_HDL | MkRuntimeHandleGet_RT (MK_RT mkrt, MK_RT const rt) |
Handle-Get-Slot - returns a export-hdl to the MkRuntimeC useable for external storage | |
static MK_RT | MkRuntimeHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl) |
Handle-Resolve-Slot - return a MkRuntimeC from netHdl or MK_NULL if invalid… | |
#define | MkRuntimeHandleResolve_e(netHdl) |
wrapper for MkRuntimeHandleResolve with error-handline | |
MkRuntimeC - Misc - function - unspecified functions to perform different tasks | |
static MK_RT | MkRuntimeGetNull (void) |
Null-Slot - return a MkRuntimeC typed NULL instance … | |
MkRuntimeC - Introspection - inline - access to all instances created by class starting with the last one | |
static MK_RT | MkRuntimeInstances_RT (MK_RT mkrt) |
get head-instance from linked-list of MkRuntimeS type … | |
static MK_RT | MkRuntimeNext (MK_RT const rt) |
get next instance from linked-list of MkRuntimeS type | |
static MK_RT | MkRuntimePrev (MK_RT const rt) |
get previous instance from linked-list of MkRuntimeS type | |
MkRuntimeC - Export - function | |
MK_RT | MkRuntimeHandleResolveP (MK_RT mkrt, MK_HDL const netHdl) |
Non-inline replacement for MkRuntimeHandleResolve … | |
MK_HDL | MkRuntimeHandleGetP (MK_RT mkrt, MK_RT const rt) |
Non-inline replacement for MkRuntimeHandleGet … | |
MkRuntimeC - Introspection - function | |
MK_RT | MkRuntimeNextP (MK_RT const rt) |
Non-inline replacement for MkRuntimeNext … | |
MK_RT | MkRuntimePrevP (MK_RT const rt) |
Non-inline replacement for MkRuntimePrev … | |
MK_RT | MkRuntimeInstancesP (MK_RT mkrt) |
Non-inline replacement for MkRuntimeInstances … | |
MkRuntimeC - Misc - function | |
MK_RT | MkRuntimeGetNullP (void) |
Non-inline replacement for MkRuntimeGetNull … | |
MkRuntimeC - Export - overload | |
#define | MkRuntimeHandleResolve_NULL(...) |
#define | MkRuntimeHandleResolve(...) |
#define | MkRuntimeHandleGet_NULL(...) |
#define | MkRuntimeHandleGet(...) |
MkRuntimeC - Introspection - overload | |
#define | MkRuntimeInstances_NULL() |
#define | MkRuntimeInstances() |
MkRuntimeC - define the class …
#define MkRuntimeHandleGet | ( | ... | ) |
Definition at line 1798 of file kernel_overload_mk.h.
#define MkRuntimeHandleGet_NULL | ( | ... | ) |
Definition at line 1797 of file kernel_overload_mk.h.
#define MkRuntimeHandleResolve | ( | ... | ) |
Definition at line 1794 of file kernel_overload_mk.h.
#define MkRuntimeHandleResolve_e | ( | netHdl | ) |
wrapper for MkRuntimeHandleResolve with error-handline
[in] | netHdl | The handle previously returned by MkObjectHandleGet. |
MK_NULL
with an error set.0
than MK_NULL
is returned and the upper-code decide how to deal with it.MK_NULL
if the netHdl is invalid or the underlying object has already been deleted.MK_NULL
is returned than an error-message is created and a jump to the label error is done.Definition at line 11873 of file LibMkKernel_mk.h.
#define MkRuntimeHandleResolve_NULL | ( | ... | ) |
Definition at line 1793 of file kernel_overload_mk.h.
#define MkRuntimeInstances | ( | ) |
Definition at line 1809 of file kernel_overload_mk.h.
#define MkRuntimeInstances_NULL | ( | ) |
Definition at line 1808 of file kernel_overload_mk.h.
typedef struct MkRuntimeS* MK_RT |
class-shortcut for struct MkRuntimeS *
, all shortcut using the XX_YYY
syntax (only for public API) …
Definition at line 1550 of file LibMkKernel_mk.h.
typedef const struct MkRuntimeS* MK_RTN |
class-shortcut for const struct MkRuntimeS *
, all const shortcut using the XX_YYYC
syntax (only for public API) …
Definition at line 1553 of file LibMkKernel_mk.h.
typedef struct MkRuntimeS MK_RTR |
reference-shortcut for struct MkRuntimeS
, all shortcut using the XX_YYYR
syntax (only for public API) …
Definition at line 1556 of file LibMkKernel_mk.h.
|
inlinestatic |
Null-Slot - return a MkRuntimeC typed NULL
instance …
Definition at line 11898 of file LibMkKernel_mk.h.
MK_RT MkRuntimeGetNullP | ( | void | ) |
Non-inline replacement for MkRuntimeGetNull …
Handle-Get-Slot - returns a export-hdl to the MkRuntimeC useable for external storage
The export-hdl is a reference to an instance that can be stored in software and converted back into an instance using the MkRuntimeHandleResolve.
By default, the export-hdl is initialized to "0", which is equivalent to does not exist. This function returns a non-zero and unique export-hdl that is recreated if necessary.
The export-hdl is only valid until the Programming-Language-Micro-Kernel (PLMK) ends.
example: The export-hdl is used in rpc to identify an object across the network.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | rt | the MkRuntimeS instance to work on - the mk-runtime argument, used by MK_RT_CALL (C-only) |
Definition at line 11840 of file LibMkKernel_mk.h.
Non-inline replacement for MkRuntimeHandleGet …
Handle-Resolve-Slot - return a MkRuntimeC from netHdl or MK_NULL
if invalid…
The MkRuntimeHandleResolve undo the MkRuntimeHandleGet and is intended to export a unique identifer into external code not belonging to the Programming-Language-Micro-Kernel (PLMK).
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | netHdl | handle former exported with MkRuntimeHandleGet |
MK_NULL
if netHdl is invalid Definition at line 11857 of file LibMkKernel_mk.h.
Non-inline replacement for MkRuntimeHandleResolve …
get head-instance from linked-list of MkRuntimeS type …
The head-instance is the last instance created.
Definition at line 12862 of file LibMkKernel_mk.h.
Non-inline replacement for MkRuntimeInstances …
get next instance from linked-list of MkRuntimeS type
Definition at line 12869 of file LibMkKernel_mk.h.
Non-inline replacement for MkRuntimeNext …
get previous instance from linked-list of MkRuntimeS type
Definition at line 12876 of file LibMkKernel_mk.h.
Non-inline replacement for MkRuntimePrev …