theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_lc.h File Reference

tag: nhi1-release-250425 More...

#include "LibMkKernel_mk.h"
#include <string.h>
#include "debug_mk.h"
#include "gen/config_overload_lc.h"
#include "LcEnum_lc.h"
+ Include dependency graph for LibLcConfig_lc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LC_RT_ARGS_ONLY   MK_RT mkrt
 
#define LC_RT_ARGS   LC_RT_ARGS_ONLY,
 
#define LC_RT_CALL_ONLY   mkrt
 
#define LC_RT_CALL   LC_RT_CALL_ONLY,
 
#define BEGIN_LC_C_DECLS   /* empty */
 
#define END_LC_C_DECLS   /* empty */
 
#define LC_INSTANCE_HDL(x)
 
#define LC_INSTANCE_RT_X(x)
 
#define LC_INSTANCE_RT_X_NULL(x)
 
#define LC_INSTANCE_RT_O(o)
 
#define LC_INSTANCE_RT_O_NULL(o)
 
#define LC_DESTRUCTOR_RT_X(c, x)
 
#define LC_STATIC_RT   MK_STATIC_RT
 
#define LC_EXTERN
 static library
 
#define LC_EXTERN_DATA   extern
 
#define LC_SET_T(_cls, _hook, _nat)
 
#define LcErrorCheckI(ret)
 check if ret signal an error
 
#define LcErrorE_Check(lc_hdl, PROC)
 check on a liblcconfig error and convert into a liblcconfig error …
 
#define LcErrorC_Check(hdl, PROC)
 
#define OT_ERROR_LC_2_MQ(hdl)
 

Typedefs

typedef struct LcConfigSLC_CFG
 class-shortcut for struct LcConfigS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct LcConfigSLC_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) …
 
typedef struct LcSettingSLC_CFS
 class-shortcut for struct LcSettingS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct LcSettingSLC_CFSN
 class-shortcut for const struct LcSettingS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct LcSettingS LC_CFSR
 reference-shortcut for struct LcSettingS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef enum LcErrorE LcErrorE
 define the return-code of a method-call
 
typedef enum LcErrorTypeE LcErrorTypeE
 define the error-source of a LcConfigC
 
typedef void(* LcSetupThreadF) (MK_RT mkrt)
 prototype of the runtime-callback
 

Functions

void LcSetup (void)
 setup liblcconfig internal memory …
 
void LcCleanup (void)
 cleanup liblcconfig internal memory …
 
enum MkErrorE LcConfigErrorToMQ (MK_OBJN const obj, MK_STRN const func, MK_STRN const file, MK_I32 const line)
 if a libconfig funtion return a LcErrorE use this function to convert the libconfig-error into the libmkkernel-error
 
void LcSetupThreadCallback (LcSetupThreadF call)
 callback used to register a new runtime
 

Detailed Description

tag: nhi1-release-250425

Definition in file LibLcConfig_lc.h.

Macro Definition Documentation

◆ BEGIN_LC_C_DECLS

#define BEGIN_LC_C_DECLS   /* empty */

Definition at line 125 of file LibLcConfig_lc.h.

◆ END_LC_C_DECLS

#define END_LC_C_DECLS   /* empty */

Definition at line 126 of file LibLcConfig_lc.h.

◆ LC_RT_ARGS

#define LC_RT_ARGS   LC_RT_ARGS_ONLY,

Definition at line 100 of file LibLcConfig_lc.h.

◆ LC_RT_ARGS_ONLY

#define LC_RT_ARGS_ONLY   MK_RT mkrt

Definition at line 99 of file LibLcConfig_lc.h.

◆ LC_RT_CALL

#define LC_RT_CALL   LC_RT_CALL_ONLY,

Definition at line 102 of file LibLcConfig_lc.h.

◆ LC_RT_CALL_ONLY

#define LC_RT_CALL_ONLY   mkrt

Definition at line 101 of file LibLcConfig_lc.h.

◆ LcErrorC_Check

#define LcErrorC_Check ( hdl,
PROC )
Value:
if (unlikely(LcErrorCheckI(PROC))) { \
OT_ERROR_LC_2_MQ(hdl); \
OT_ERROR_META_2_LNG(hdl); \
goto error; \
}
#define LcErrorCheckI(ret)
check if ret signal an error …
#define unlikely(x)

Definition at line 506 of file LibLcConfig_lc.h.

506#define LcErrorC_Check(hdl,PROC) \
507 if (unlikely(LcErrorCheckI(PROC))) { \
508 OT_ERROR_LC_2_MQ(hdl); \
509 OT_ERROR_META_2_LNG(hdl); \
510 goto error; \
511 }

◆ OT_ERROR_LC_2_MQ

#define OT_ERROR_LC_2_MQ ( hdl)
Value:
LcConfigErrorToMQ(MkOBJ(hdl), __func__,__FILE__,__LINE__);
enum MkErrorE LcConfigErrorToMQ(MK_OBJN const obj, MK_STRN const func, MK_STRN const file, MK_I32 const line)
if a libconfig funtion return a LcErrorE use this function to convert the libconfig-error into the li...
#define MkOBJ(x)

Definition at line 513 of file LibLcConfig_lc.h.