48 MkErrorSetC_1E(
"initialization failed, use 'LcConfig.Setup()' at startup");
79__parser__(internal,no-alias,overload-c-no,class=LcConfigC)
98__parser__(callback-name=ConfigInclude, callback-null)
116 return cfg ? cfg->fConfigIncludeData : NULL;
134__parser__( callback-name=SettingDelete, callback-null)
156 return cfg ? cfg->fSettingDeleteData : NULL;
204#ifndef PARSE_C_HEADER_TO_META
215#ifndef PARSE_C_HEADER_TO_META
257#ifndef PARSE_C_HEADER_TO_META
274 *value_out = (
MK_BOOL)(value_out_val);
322#ifndef PARSE_C_HEADER_TO_META
371#ifndef PARSE_C_HEADER_TO_META
LcConfigC_def_lc.h - 16 Nov 2024 - aotto1968.
LcSettingC_def_lc.h - 16 Nov 2024 - aotto1968.
LibLcConfig_lc.h - 16 Nov 2024 - aotto1968.
void(* LcConfigIncludeFreeF)(LcConfigIncludeFreeF_ARGS)
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)
enum MkErrorE(* LcConfigIncludeCallF)(LcConfigIncludeCallF_ARGS)
void(* LcSettingDeleteFreeF)(LcSettingDeleteFreeF_ARGS)
#define LcConfigIncludeFreeF_ARGS
#define LcConfigIncludeCallF_ARGS
__thread MK_TYP LcConfigC_TT
class as MkSuperTypeS-class-type …
static enum LcErrorTypeE LcConfigErrorType(LC_CFGN config)
This function, which is implemented as a macro, returns the type of error that occurred during the la...
static enum LcConfigFormatE LcConfigGetDefaultFormat(LC_CFGN config)
These functions, which are implemented as macros, get and set the default external format for setting...
static MK_I16 LcConfigGetTabWidth(LC_CFGN config)
These functions, which are implemented as macros, get and set the tab width for the configuration con...
static MK_BOOL LcConfigGetOption(LC_CFGN config, enum LcConfigOptionsEF option)
Since v1.7 These functions get and set the given option of the configuration config …
static MK_I16 LcConfigGetFloatPrecision(LC_CFGN config)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
static MK_PTR LcConfigGetIncludeFunc(LC_CFG const cfg)
return the callback-name for the include-config-file …
static MK_PTR LcConfigGetSettingDeleteFunc(LC_CFG const cfg)
get the __parser__(callback-name) for setting-delete …
static enum LcConfigOptionsEF LcConfigGetOptions(LC_CFGN config)
These functions get and set the options for the configuration config …
static MK_STRN LcConfigGetIncludeDir(LC_CFGN config)
config_set_include_dir specifies the include directory, include_dir, relative to which the files spec...
static enum MkErrorE LcConfigLookupFloat(LC_CFGN config, MK_STRN path, MK_DBL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupBool(LC_CFGN config, MK_STRN path, MK_BOOL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupString(LC_CFGN config, MK_STRN path, MK_STRN *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupInt(LC_CFGN config, MK_STRN path, MK_I32 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupInt64(LC_CFGN config, MK_STRN path, MK_I64 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static LC_CFS LcConfigLookup(LC_CFGN config, MK_STRN path)
This function locates the setting in the configuration config specified by the path path …
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …
static LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
enum MkErrorE LcConfigWriteString_RT(MK_RT mkrt, LC_CFGN const cfg, MK_STRN *val_out)
read the entire configuration cfg into the string val_out …
void LcConfigLog_RT(MK_RT mkrt, LC_CFGN const cfg, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
log the config …
static void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
static enum MkErrorE LcConfigReadFile(LC_CFG config, MK_STRN filename)
This function reads and parses a configuration from the file named filename into the configuration ob...
static enum MkErrorE LcConfigReadString(LC_CFG config, MK_STRN str)
This function reads and parses a configuration from the string str into the configuration object conf...
enum MkErrorE LcConfigSetIncludeFunc_RT(MK_RT mkrt, LC_CFG const cfg, LcConfigIncludeCallF fConfigIncludeCall, LC_CBP fConfigIncludeData, LcConfigIncludeFreeF fConfigIncludeFree)
set the __parser__(callback-name) for the include-config-file …
static void LcConfigSetTabWidth(LC_CFG config, MK_I16 width)
These functions, which are implemented as macros, get and set the tab width for the configuration con...
static void LcConfigSetFloatPrecision(LC_CFG config, MK_I16 digits)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
enum MkErrorE LcConfigIncludeCall(LcConfigIncludeCallF_ARGS)
config-file include __parser__(callback-name) → call …
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …
enum MkErrorE LcConfigSetSettingDeleteFunc_RT(MK_RT mkrt, LC_CFG const cfg, LcSettingDeleteCallF fSettingDeleteCall, LC_CBP fSettingDeleteData, LcSettingDeleteFreeF fSettingDeleteFree)
set the callback-name for the setting-delete …
static void LcConfigSetOption(LC_CFG config, enum LcConfigOptionsEF option, MK_BOOL flag)
Since v1.7 These functions get and set the given option of the configuration config …
static void LcConfigSetIncludeDir(LC_CFG config, MK_STRN include_dir)
config_set_include_dir specifies the include directory, include_dir, relative to which the files spec...
static void LcConfigSetIncludeFuncHide(LC_CFG config, config_include_fn_t func)
Since v1.7 Specifies the include function func to use when processing include directives …
void LcConfigIncludeFree(LcConfigIncludeFreeF_ARGS)
config-file include __parser__(callback-name) → free …
static void LcConfigSetDefaultFormat(LC_CFG config, enum LcConfigFormatE format)
These functions, which are implemented as macros, get and set the default external format for setting...
void LcConfigDelete_RT(MK_RT mkrt, LC_CFG const cfg)
delete a LcConfigC instance …
static LC_CFG LcConfigCreate(MK_TYP type, config_t *nat)
create a LcConfigC instance …
#define LC_EXTERN
static library
LcErrorE
Signals an error and is used as the return value of a function …
LcConfigFormatE
set the format of a LcSettingC …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
#define LcErrorE_Check(lc_hdl, PROC)
check on a liblcconfig error and convert into a liblcconfig error …
#define LC_INSTANCE_HDL(x)
static MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define MkErrorSetC_1E(message)
#define MK_ATTR_RT_INSTANCE
LIBCONFIG_API int config_read_file(config_t *config, const char *filename)
LIBCONFIG_API void config_set_float_precision(config_t *config, unsigned short digits)
LIBCONFIG_API config_setting_t * config_lookup(const config_t *config, const char *path)
LIBCONFIG_API void config_set_include_dir(config_t *config, const char *include_dir)
LIBCONFIG_API unsigned short config_get_tab_width(const config_t *config)
LIBCONFIG_API void config_set_include_func(config_t *config, config_include_fn_t func)
LIBCONFIG_API void config_set_tab_width(config_t *config, unsigned short width)
LIBCONFIG_API void config_set_options(config_t *config, int options)
LIBCONFIG_API int config_lookup_string(const config_t *config, const char *path, const char **value)
const char **(* config_include_fn_t)(struct config_t *, const char *, const char *, const char **)
#define config_set_default_format(C, F)
LIBCONFIG_API unsigned short config_get_float_precision(const config_t *config)
LIBCONFIG_API int config_lookup_bool(const config_t *config, const char *path, int *value)
LIBCONFIG_API int config_lookup_float(const config_t *config, const char *path, double *value)
#define config_error_type(C)
LIBCONFIG_API int config_lookup_int(const config_t *config, const char *path, int *value)
LIBCONFIG_API int config_get_options(const config_t *config)
#define config_root_setting(C)
LIBCONFIG_API void config_set_option(config_t *config, int option, int flag)
LIBCONFIG_API int config_write_file(config_t *config, const char *filename)
LIBCONFIG_API int config_get_option(const config_t *config, int option)
LIBCONFIG_API int config_lookup_int64(const config_t *config, const char *path, long long *value)
#define config_get_include_dir(C)
LIBCONFIG_API void config_clear(config_t *config)
LIBCONFIG_API int config_read_string(config_t *config, const char *str)
#define config_get_default_format(C)
Struct to represent the data from the LcConfigC …
config_t * nat
internal - link between LcConfigS and native library
Struct to represent the data from the LcSettingC …