theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_lc.h File Reference
#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.

Namespaces

namespace  liblcconfig
 

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   namespace liblcconfig { using namespace libmkkernel;
 
#define END_LC_C_DECLS   }
 
#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 cclcconfig error and convert into a cclcconfig error …
 
#define LcErrorC_Check(hdl, PROC)
 
#define OT_ERROR_LC_2_MQ(hdl)
 

Typedefs

typedef struct LcConfigSliblcconfig::LC_CFG
 class-shortcut for struct LcConfigS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct LcConfigSliblcconfig::LC_CFGN
 class-shortcut for const struct LcConfigS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct LcConfigS liblcconfig::LC_CFGR
 reference-shortcut for struct LcConfigS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef struct LcSettingSliblcconfig::LC_CFS
 class-shortcut for struct LcSettingS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct LcSettingSliblcconfig::LC_CFSN
 class-shortcut for const struct LcSettingS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct LcSettingS liblcconfig::LC_CFSR
 reference-shortcut for struct LcSettingS, all shortcut using the XX_YYYR syntax (only for public API) …
 
typedef enum LcErrorE liblcconfig::LcErrorE
 define the return-code of a method-call
 
typedef enum LcErrorTypeE liblcconfig::LcErrorTypeE
 define the error-source of a LcConfigC
 
typedef void(* liblcconfig::LcSetupThreadF) (MK_RT mkrt)
 prototype of the runtime-callback
 

Functions

void liblcconfig::LcSetup (void)
 setup cclcconfig internal memory …
 
void liblcconfig::LcCleanup (void)
 cleanup cclcconfig internal memory …
 
enum MkErrorE liblcconfig::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 liblcconfig::LcSetupThreadCallback (LcSetupThreadF call)
 callback used to register a new runtime
 

Macro Definition Documentation

◆ BEGIN_LC_C_DECLS

#define BEGIN_LC_C_DECLS   namespace liblcconfig { using namespace libmkkernel;

Definition at line 119 of file LibLcConfig_lc.h.

◆ END_LC_C_DECLS

#define END_LC_C_DECLS   }

Definition at line 120 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 520 of file LibLcConfig_lc.h.

◆ OT_ERROR_LC_2_MQ

#define OT_ERROR_LC_2_MQ ( hdl)
Value:
LcConfigErrorToMQ(MkOBJ(hdl), __func__,__FILE__,__LINE__);
#define MkOBJ(x)

Definition at line 527 of file LibLcConfig_lc.h.