LcConfigC - define the class … More...
Topics | |
LcConfigC_Class_Define_C_API | |
LcConfigC - low level definition, access and cast … | |
Macros | |
#define | LcGetCfgFromNat(_nat) |
helper for LcConfigC_ObjNew … | |
Typedefs | |
typedef struct LcConfigS * | LC_CFG |
class-shortcut for struct LcConfigS * , all shortcut using the XX_YYY syntax (only for public API) … | |
typedef const struct LcConfigS * | LC_CFGN |
class-shortcut for const struct LcConfigS * , all const shortcut using the XX_YYYC syntax (only for public API) … | |
typedef struct LcConfigS | LC_CFGR |
reference-shortcut for struct LcConfigS , all shortcut using the XX_YYYR syntax (only for public API) … | |
LcConfigC - Export - inline - interact with an external software | |
static MK_ARTIFICIAL LC_CFG | LcConfigC_ObjNew (config_t *hdl) |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl … | |
static LC_CFG | LcConfigC_ObjCreate (config_t *hdl) |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl … | |
static MK_HDL | LcConfigHandleGet_RT (MK_RT mkrt, LC_CFG const cfg) |
Handle-Get-Slot - returns a export-hdl to the LcConfigC useable for external storage | |
static LC_CFG | LcConfigHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl) |
Handle-Resolve-Slot - return a LcConfigC from netHdl or MK_NULL if invalid… | |
#define | LcConfigHandleResolve_e(netHdl) |
wrapper for LcConfigHandleResolve with error-handline | |
LcConfigC - Misc - function - unspecified functions to perform different tasks | |
static LC_CFG | LcConfigGetNull (void) |
Null-Slot - return a LcConfigC typed NULL instance … | |
LcConfigC - Introspection - inline - access to all instances created by class starting with the last one | |
static LC_CFG | LcConfigInstances_RT (MK_RT mkrt) |
get head-instance from linked-list of LcConfigS type … | |
static LC_CFG | LcConfigNext (LC_CFG const cfg) |
get next instance from linked-list of LcConfigS type | |
static LC_CFG | LcConfigPrev (LC_CFG const cfg) |
get previous instance from linked-list of LcConfigS type | |
LcConfigC - Export - function | |
LC_CFG | LcConfigHandleResolveP (MK_RT mkrt, MK_HDL const netHdl) |
Non-inline replacement for LcConfigHandleResolve … | |
MK_HDL | LcConfigHandleGetP (MK_RT mkrt, LC_CFG const cfg) |
Non-inline replacement for LcConfigHandleGet … | |
LcConfigC - Introspection - function | |
LC_CFG | LcConfigNextP (LC_CFG const cfg) |
Non-inline replacement for LcConfigNext … | |
LC_CFG | LcConfigPrevP (LC_CFG const cfg) |
Non-inline replacement for LcConfigPrev … | |
LC_CFG | LcConfigInstancesP (MK_RT mkrt) |
Non-inline replacement for LcConfigInstances … | |
LcConfigC - Misc - function | |
LC_CFG | LcConfigGetNullP (void) |
Non-inline replacement for LcConfigGetNull … | |
LcConfigC - Export - overload | |
#define | LcConfigHandleResolve_NULL(...) |
#define | LcConfigHandleResolve(...) |
#define | LcConfigHandleGet_NULL(...) |
#define | LcConfigHandleGet(...) |
LcConfigC - Introspection - overload | |
#define | LcConfigInstances_NULL() |
#define | LcConfigInstances() |
LcConfigC - define the class …
#define LcConfigHandleGet | ( | ... | ) |
Definition at line 56 of file config_overload_lc.h.
#define LcConfigHandleGet_NULL | ( | ... | ) |
Definition at line 55 of file config_overload_lc.h.
#define LcConfigHandleResolve | ( | ... | ) |
Definition at line 52 of file config_overload_lc.h.
#define LcConfigHandleResolve_e | ( | netHdl | ) |
wrapper for LcConfigHandleResolve 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 316 of file LcConfigC_def_lc.h.
#define LcConfigHandleResolve_NULL | ( | ... | ) |
Definition at line 51 of file config_overload_lc.h.
#define LcConfigInstances | ( | ) |
Definition at line 67 of file config_overload_lc.h.
#define LcConfigInstances_NULL | ( | ) |
Definition at line 66 of file config_overload_lc.h.
#define LcGetCfgFromNat | ( | _nat | ) |
helper for LcConfigC_ObjNew …
Definition at line 238 of file LcConfigC_def_lc.h.
class-shortcut for struct LcConfigS *
, all shortcut using the XX_YYY
syntax (only for public API) …
Definition at line 287 of file LibLcConfig_lc.h.
class-shortcut for const struct LcConfigS *
, all const shortcut using the XX_YYYC
syntax (only for public API) …
Definition at line 290 of file LibLcConfig_lc.h.
reference-shortcut for struct LcConfigS
, all shortcut using the XX_YYYR
syntax (only for public API) …
Definition at line 293 of file LibLcConfig_lc.h.
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
Definition at line 261 of file LcConfigC_def_lc.h.
|
inlinestatic |
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
Definition at line 254 of file LcConfigC_def_lc.h.
|
inlinestatic |
LC_CFG LcConfigGetNullP | ( | void | ) |
Non-inline replacement for LcConfigGetNull …
Handle-Get-Slot - returns a export-hdl to the LcConfigC 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 LcConfigHandleResolve.
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] | cfg | Programming-Language-Micro-Kernel (PLMK) instance from config_t |
Definition at line 283 of file LcConfigC_def_lc.h.
Non-inline replacement for LcConfigHandleGet …
Handle-Resolve-Slot - return a LcConfigC from netHdl or MK_NULL
if invalid…
The LcConfigHandleResolve undo the LcConfigHandleGet 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 LcConfigHandleGet |
MK_NULL
if netHdl is invalid Definition at line 300 of file LcConfigC_def_lc.h.
Non-inline replacement for LcConfigHandleResolve …
get head-instance from linked-list of LcConfigS type …
The head-instance is the last instance created.
Definition at line 365 of file LcConfigC_def_lc.h.
Non-inline replacement for LcConfigInstances …
get next instance from linked-list of LcConfigS type
Definition at line 372 of file LcConfigC_def_lc.h.
Non-inline replacement for LcConfigNext …
get previous instance from linked-list of LcConfigS type
Definition at line 379 of file LcConfigC_def_lc.h.
Non-inline replacement for LcConfigPrev …