javalcconfig 9.0
Loading...
Searching...
No Matches
LcConfigC_lc.h
Go to the documentation of this file.
1
12#pragma once
13
14#ifdef META_DOXYGEN_SHOULD_SKIP_THIS
15 #undef BEGIN_LC_C_DECLS
16 #undef END_LC_C_DECLS
17 #if defined(META_COMPILE_AS_CC)
18 # define BEGIN_LC_C_DECLS namespace liblcconfig { using namespace libmkkernel;
19 # define END_LC_C_DECLS }
20 #elif defined(__cplusplus)
21 # define BEGIN_LC_C_DECLS extern "C" {
22 # define END_LC_C_DECLS }
23 #else
24 # define BEGIN_LC_C_DECLS /* empty */
25 # define END_LC_C_DECLS /* empty */
26 #endif
27#endif
28
30
31/* MARK_C ################################################################ */
32/* ### ### */
33/* ### C O N F I G - A P I ### */
34/* ### ### */
35/* ####################################################################### */
36
40
41__parser__(type=ME_PAX_LC_CBP:"generic pointer to libconfig call-back data")
42typedef MK_PTRB * LC_CBP;
43
44#define LcConfigIncludeCallF_ARGS \
45 MK_RT_ARGS struct LcConfigS* const cfg, MK_STRN incDir, MK_STRN path, MK_BFL ret_inout
47
48#define LcConfigIncludeFreeF_ARGS MK_RT_ARGS struct LcConfigS* const cfg
50
51#define LcSettingDeleteCallF_ARGS \
52 MK_RT_ARGS struct LcConfigS* const cfg, struct LcSettingS* const cfs
54
55#define LcSettingDeleteFreeF_ARGS MK_RT_ARGS struct LcConfigS* const cfg
57
59struct LcConfigS {
60 // BEGIN-LcConfigS-super - created by 'cls_MqS.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
61 union {
62 struct MkObjectS obj; // base CLASS \MkObjectS
64 // END-LcConfigS-super - created by 'cls_MqS.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
65
66 // object body
69
70 // include function
75
76 // setting delete hook function
81};
82
83#define LcConfigC_nat config_t*
84
85// =======================================================================================
86// BEGIN-LcConfigS-ClassDef - created by 'cls_MqS.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
87
88// Signature --------------------------------------------------------------
91
92 #define LcConfigC_SIGNATURE (MkObjectC_SIGNATURE ^ (11u<<10))
93 #define LcConfigC_MASK (((1u<<22)-1)<<10)
94
96
97// Signature --------------------------------------------------------------
100
101 #define LcConfigC_X2cfg(x) (x)
102 #define LcConfigC_X2obj(x) MkOBJ(x)
103
105
106
107// TypeDef --------------------------------------------------------------
110
112 __parser__(ignore) typedef struct LcConfigS LcConfigCR;
114 __parser__(ignore) typedef const struct LcConfigS LcConfigCNR;
118 #define LcConfigC_T ( (struct MkDefTypeS *) (LcConfigC_TT) )
120 #define LcConfigST LcConfigC_T
122 #define LcConfigSTT (MkTYP(LcConfigST))
124 #define LcConfigC_type LC_CFG
126 #define LcConfigCT_X(instance) ( (struct MkDefTypeS *) (MkOBJ_R(instance).type) )
128 #define LcConfigCTT_X(instance) (MkOBJ_R(instance).type)
130 #define LcConfigCT_TT(typ) ( (struct MkDefTypeS *) (typ) )
132 #define LcConfigC_NS LC
134 #define LcConfigCTT LcConfigCTT
136 #define LcConfigCT ( (struct MkDefTypeS *) LcConfigCTT )
137
139
140
141// TypeCheck --------------------------------------------------------------
144
145 #pragma GCC diagnostic push
146 #pragma GCC diagnostic ignored "-Wattributes"
147
150 __parser__(class=LcConfigC,static,hide)
151 mk_inline bool LcCfgCheck (MK_MNGN mng) {
152 return MkSanitizeCheck(LcConfigC,mng);
153 }
154
155 #pragma GCC diagnostic pop
156 #define LcConfigC_Check(mng) LcCfgCheck(mng)
157
159
160
161// ObjectCast --------------------------------------------------------------
165 __parser__push__(prefix=Cast);
166
168 __parser__(class=LcConfigC,hide,static)
169 META_ATTRIBUTE_SANITIZE
170 mk_inline LC_CFG LcCfg(MK_MNG mng) {
171 return (LcCfgCheck(mng) ? (LC_CFG)mng : NULL);
172 }
173
175 __parser__(ignore)
176 META_ATTRIBUTE_SANITIZE
178 return (LcCfgCheck(mng) ? (LC_CFGN)mng : NULL);
179 }
180
182 #define LcCfgRaise(_cfg) if (!_MkCheckX(LcConfigC,_cfg)) { \
183 MkErrorSetC_1E("'LcConfigC' hdl is NULL"); \
184 goto error ; \
185 }
186
188 #define LcCFG_R(x) (*(x)).super.cfg
190 #define LcCFG(x) (&LcCFG_R(x))
191
194
195// END-LcConfigS-ClassDef - created by 'cls_MqS.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
196// =======================================================================================
197
199
200
201// #######################################################################
202// -----------------------------------------------------------------------
203
206
207// doc-key: LcConfigC,LcConfigC-TOR,sCc
208
215__parser__(constructor,lng-constr)
217 MK_TYP type __parser__(internal,default=NULL),
218 config_t *nat __parser__(internal,keep-original-type,default=NULL)
219) {
221 if (LcConfigC_TT == NULL) {
222 MkErrorSetC_1E("initialization failed, use 'LcConfig.Setup()' at startup");
223 return NULL;
224 }
225
226 if (type == NULL) type = LcConfigC_TT;
227 return (LC_CFG)MkObjCreate(type,nat,NULL);
228}
229
231__parser__(destructor)
233 MK_RT_PARSER
234 LC_CFG const cfg
235) MK_RT_ATTR_RUNTIME MK_RT_ATTR_HDL;
236
237#define MqConfigDelete_NULL(cfg) MkObjectDeleteToNull(MqConfigDelete,cfg)
238
240
241// \brief \b addon - check if \arg{cfg} is \c NULL …
242// mk_inline bool LcConfigIsNullI ( LC_CFG const cfg ) {
243// return cfg->nat == NULL;
244// }
245
246// \brief \b addon - check if \arg{cfg} is \c NULL …
247// __parser__(inline=LcConfigIsNullI)
248// LC_EXTERN MK_BOOL MK_DECL LcConfigIsNull(LC_CFG cfg);
249
250__parser__(internal,no-alias,overload-c-no,class=LcConfigC)
253);
254
255__parser__(internal,no-alias,class=LcConfigC)
258);
259
261 MK_RT_PARSER
262 LC_CFG const cfg,
263 LcConfigIncludeCallF fConfigIncludeCall __parser__(internal,default=LcConfigIncludeCall,wrapper=NS),
264 LC_CBP fConfigIncludeData __parser__(callback=LcConfigIncludeCB),
265 LcConfigIncludeFreeF fConfigIncludeFree __parser__(internal,default=LcConfigIncludeFree,wrapper=NS)
266) MK_RT_ATTR_RUNTIME MK_RT_ATTR_HDL;
267
269__parser__(hide)
271 LC_CFG const cfg
272) {
273 return cfg ? cfg->fConfigIncludeData : NULL;
274}
275
278 MK_RT_PARSER
279 LC_CFG const cfg,
280 LcSettingDeleteCallF fSettingDeleteCall __parser__(internal,default=LcSettingDeleteCall,wrapper=NS),
281 LC_CBP fSettingDeleteData __parser__(callback=LcSettingDeleteCB),
282 LcSettingDeleteFreeF fSettingDeleteFree __parser__(internal,default=LcSettingDeleteFree,wrapper=NS)
284
285__parser__(hide)
287 LC_CFG const cfg
288) {
289 return cfg ? cfg->fSettingDeleteData : NULL;
290}
291
300__parser__(no-alias)
302 MK_RT_PARSER
303 LC_CFGN const cfg,
304 MK_STRN *val_out
305) MK_RT_ATTR_RUNTIME MK_RT_ATTR_HDL;
306
316__parser__(const,flags=new)
318 MK_RT_PARSER
319 LC_CFGN const cfg,
320 MK_OBJN fmtobj __parser__(default=NULL),
321 MK_DBG const debug __parser__(default=0),
322 MK_STRN const callfunc __parser__(default=F#FUNC),
323 MK_INT const lvl __parser__(default=0)
324) MK_RT_ATTR_RUNTIME ;
325
326/*****************************************************************************/
327/* */
328/* inline functions */
329/* */
330/*****************************************************************************/
331
333
336#define LcGetCfgFromNat(_nat) LC_SET_T(LcConfigC,config_get_hook,_nat)
337
340__parser__(internal)
343 return LcGetCfgFromNat(hdl);
344}
345
348__parser__(no-rpc,doc=TOR,flags=new)
349mk_inline LC_CFG LcConfigFromHandle (MK_LONG const exporthdl) {
350 return LcCfg((MK_MNG)exporthdl);
351}
352
353// =========================================================================
354// BEGIN-ClassInline - created by 'cls_MqS.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
355// ClassInline --------------------------------------------------------------
356
360
361__parser__push__(doc=Introspection,class=LcConfigC,no-rpc,null-return-allow,flags=new);
362
369
372 return (LC_CFG)LcConfigC_X2obj(cfg)->obj_protect.next;
373}
374
377 return (LC_CFG)LcConfigC_X2obj(cfg)->obj_protect.prev;
378}
379
381
383
384// END-ClassInline - created by 'cls_MqS.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
385
386// =========================================================================
387// BEGIN-LcConfigC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
388
389#ifndef PARSE_C_HEADER_TO_META
390
391 // doc-key: LcConfigC,LcConfigC-Error,om_
392
395 return (enum LcErrorTypeE)config_error_type(config->nat);
396 }
397
398#endif
399
400#ifndef PARSE_C_HEADER_TO_META
401
402 // doc-key: LcConfigC,LcConfigC-Get,om_
403
408
413
416 MK_STRN __retVal__L = config_get_include_dir(config->nat);
417 return __retVal__L;
418 }
419
422 return (MK_BOOL)config_get_option(config->nat, option);
423 }
424
429
434
435#endif
436
437#ifndef PARSE_C_HEADER_TO_META
438
439 // doc-key: LcConfigC,LcConfigC-Lookup,oc_
440
443 return LcSettingC_ObjNew(config_lookup(config->nat, path));
444 }
445
446
447 // doc-key: LcConfigC,LcConfigC-Lookup,omo
448
450 mk_inline enum MkErrorE LcConfigLookupBool (LC_CFGN config, MK_STRN path, MK_BOOL *value_out) {
451 MK_INT value_out_val = 0;
452 enum LcErrorE errVal = (enum LcErrorE)config_lookup_bool(config->nat, path, &value_out_val);
453 *value_out = (MK_BOOL)(value_out_val);
454 LcErrorE_Check(config, errVal);
455 return MK_OK;
456 error:
457 return MkErrorStack_1X_NULL(config);
458 }
459
461 mk_inline enum MkErrorE LcConfigLookupFloat (LC_CFGN config, MK_STRN path, MK_DBL *value_out) {
462 enum LcErrorE errVal = (enum LcErrorE)config_lookup_float(config->nat, path, value_out);
463 LcErrorE_Check(config, errVal);
464 return MK_OK;
465 error:
466 return MkErrorStack_1X_NULL(config);
467 }
468
470 mk_inline enum MkErrorE LcConfigLookupInt (LC_CFGN config, MK_STRN path, MK_INT *value_out) {
471 enum LcErrorE errVal = (enum LcErrorE)config_lookup_int(config->nat, path, value_out);
472 LcErrorE_Check(config, errVal);
473 return MK_OK;
474 error:
475 return MkErrorStack_1X_NULL(config);
476 }
477
479 mk_inline enum MkErrorE LcConfigLookupInt64 (LC_CFGN config, MK_STRN path, MK_WID *value_out) {
480 MK_LLG value_out_val = 0;
481 enum LcErrorE errVal = (enum LcErrorE)config_lookup_int64(config->nat, path, &value_out_val);
482 *value_out = (MK_WID)(value_out_val);
483 LcErrorE_Check(config, errVal);
484 return MK_OK;
485 error:
486 return MkErrorStack_1X_NULL(config);
487 }
488
491 enum LcErrorE errVal = (enum LcErrorE)config_lookup_string(config->nat, path, value_out);
492 LcErrorE_Check(config, errVal);
493 return MK_OK;
494 error:
495 return MkErrorStack_1X_NULL(config);
496 }
497
498#endif
499
500#ifndef PARSE_C_HEADER_TO_META
501
502 // doc-key: LcConfigC,LcConfigC-Misc,oc_
503
508
509
510 // doc-key: LcConfigC,LcConfigC-Misc,om_
511
514 config_clear(config->nat);
515 }
516
519 enum LcErrorE errVal = (enum LcErrorE)config_read_file(config->nat, filename);
520 LcErrorE_Check(config, errVal);
521 return MK_OK;
522 error:
523 return MkErrorStack_1X_NULL(config);
524 }
525
528 enum LcErrorE errVal = (enum LcErrorE)config_read_string(config->nat, str);
529 LcErrorE_Check(config, errVal);
530 return MK_OK;
531 error:
532 return MkErrorStack_1X_NULL(config);
533 }
534
537 enum LcErrorE errVal = (enum LcErrorE)config_write_file(config->nat, filename);
538 LcErrorE_Check(config, errVal);
539 return MK_OK;
540 error:
541 return MkErrorStack_1X_NULL(config);
542 }
543
544#endif
545
546#ifndef PARSE_C_HEADER_TO_META
547
548 // doc-key: LcConfigC,LcConfigC-Set,om_
549
552 config_set_default_format(config->nat, format);
553 }
554
557 config_set_float_precision(config->nat, (MK_USS)digits);
558 }
559
561 mk_inline void LcConfigSetIncludeDir (LC_CFG config, MK_STRN include_dir) {
562 config_set_include_dir(config->nat, include_dir);
563 }
564
566 mk_inline void LcConfigSetOption (LC_CFG config, enum LcConfigOptionsEF option, MK_BOOL flag) {
567 config_set_option(config->nat, option, flag);
568 }
569
572 config_set_options(config->nat, options);
573 }
574
577 config_set_tab_width(config->nat, (MK_USS)width);
578 }
579
580#endif
581// END-LcConfigC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/liblcconfig/.liblcconfig.meta' - DO NOT change
582
584
enum MkErrorE LcConfigSetSettingDeleteFunc_RT(MK_RT const mkrt, LC_CFG const cfg, LcSettingDeleteCallF fSettingDeleteCall, LC_CBP fSettingDeleteData, LcSettingDeleteFreeF fSettingDeleteFree)
callback called on delete a setting, used to cleanup user data…
enum MkErrorE LcConfigIncludeCall(LcConfigIncludeCallF_ARGS)
#define BEGIN_LC_C_DECLS
#define END_LC_C_DECLS
MK_PTR LcConfigGetSettingDeleteFunc(LC_CFG const cfg)
enum MkErrorE LcConfigSetIncludeFunc_RT(MK_RT const mkrt, LC_CFG const cfg, LcConfigIncludeCallF fConfigIncludeCall, LC_CBP fConfigIncludeData, LcConfigIncludeFreeF fConfigIncludeFree)
void LcConfigIncludeFree(LcConfigIncludeFreeF_ARGS)
MK_PTR LcConfigGetIncludeFunc(LC_CFG const cfg)
return the include-function
MK_PTRB * LC_CBP
void(* LcConfigIncludeFreeF)(LcConfigIncludeFreeF_ARGS)
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)
#define LcSettingDeleteFreeF_ARGS
enum MkErrorE(* LcConfigIncludeCallF)(LcConfigIncludeCallF_ARGS)
#define LcConfigC_X2obj(x)
MkThreadLocal MK_TYP LcConfigC_TT
instance-type as specific-instance-type …
void(* LcSettingDeleteFreeF)(LcSettingDeleteFreeF_ARGS)
#define LcConfigIncludeFreeF_ARGS
#define LcConfigIncludeCallF_ARGS
bool LcCfgCheck(MK_MNGN mng)
check LcConfigS%->Mk{ObjectS::signature} …
#define LcSettingDeleteCallF_ARGS
LC_CFG LcCfg(MK_MNG mng)
cast a unknown-object into an LcConfigS pointer or NULL if not possible
LC_CFGN LcCfgN(MK_MNGN mng)
(const) cast a unknown-object into an LcConfigS pointer or NULL if not possible
enum LcErrorTypeE LcConfigErrorType(LC_CFGN config)
This function, which is implemented as a macro, returns the type of error that occurred during the la...
MK_SRT LcConfigGetTabWidth(LC_CFGN config)
These functions, which are implemented as macros, get and set the tab width for the configuration con...
MK_STRN LcConfigGetIncludeDir(LC_CFGN config)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
enum LcConfigOptionsEF LcConfigGetOptions(LC_CFGN config)
These functions get and set the options for the configuration config …
MK_SRT LcConfigGetFloatPrecision(LC_CFGN config)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
MK_BOOL LcConfigGetOption(LC_CFGN config, enum LcConfigOptionsEF option)
Since v1.7 These functions get and set the given option of the configuration config …
enum LcConfigFormatE LcConfigGetDefaultFormat(LC_CFGN config)
These functions, which are implemented as macros, get and set the default external format for setting...
LC_CFG LcConfigPrev(LC_CFG const cfg)
get previous instance from linked-list of LcConfigS type
LC_CFG LcConfigNext(LC_CFG const cfg)
get next instance from linked-list of LcConfigS type
LC_CFG LcConfigInstances(void)
get head-instance from linked-list of LcConfigS type …
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...
enum MkErrorE LcConfigLookupInt64(LC_CFGN config, MK_STRN path, MK_WID *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
enum MkErrorE LcConfigLookupInt(LC_CFGN config, MK_STRN path, MK_INT *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
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...
LC_CFS LcConfigLookup(LC_CFGN config, MK_STRN path)
This function locates the setting in the configuration config specified by the path path …
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...
enum MkErrorE LcConfigWriteString_RT(MK_RT const mkrt, LC_CFGN const cfg, MK_STRN *val_out)
read the entire configuration cfg into the string val_out …
enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …
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 LcConfigReadFile(LC_CFG config, MK_STRN filename)
This function reads and parses a configuration from the file named filename into the configuration ob...
LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
void LcConfigLog_RT(MK_RT const mkrt, LC_CFGN const cfg, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_INT const lvl)
log the config …
void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
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 …
void LcConfigSetIncludeDir(LC_CFG config, MK_STRN include_dir)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …
void LcConfigSetTabWidth(LC_CFG config, MK_SRT width)
These functions, which are implemented as macros, get and set the tab width for the configuration con...
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 LcConfigSetFloatPrecision(LC_CFG config, MK_SRT digits)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
#define LcGetCfgFromNat(_nat)
helper for LcConfigC_ObjNew …
LC_CFG LcConfigFromHandle(MK_LONG const exporthdl)
return a LcConfigC from exporthdl…
void LcConfigDelete_RT(MK_RT const mkrt, LC_CFG const cfg)
delete a LcConfigC instance …
LC_CFG LcConfigC_ObjNew(config_t *hdl)
return Programming-Language-Micro-Kernel instance from hdl …
LC_CFG LcConfigCreate(MK_TYP type, config_t *nat)
create a LcConfigC instance …
#define LC_EXTERN_DATA
#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
configuration options for config-file-layout
LcErrorTypeE
#define LcErrorE_Check(lc_hdl, PROC)
check on a javalcconfig error and convert into a javalcconfig error …
#define LcRtSetup_NULL
LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel instance from hdl …
#define MkErrorStack_1X_NULL(...)
#define MK_DECL
#define mk_inline
#define MkObjCreate(...)
#define MkErrorSetC_1E(message)
MkErrorE
MK_OK
unsigned short MK_USS
const MK_PTRB * MK_MNGN
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
MK_PTRB * MK_MNG
bool MK_BOOL
long long MK_LLG
int64_t MK_WID
void MK_PTRB
signed short MK_SRT
long MK_LONG
double MK_DBL
signed int MK_INT
int MK_DBG
#define MkSanitizeCheck(_root, _m)
#define MkThreadLocal
#define MK_RT_ATTR_RUNTIME
#define MkRtSetup_NULL
#define MK_RT_ATTR_HDL
#define __parser__pop__
#define __parser__push__(...)
#define __parser__(...)
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_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)
#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)
Class to represent a the entire configuration of the of the libconfig library …
MK_PTR fSettingDeleteHook
internal - link between LcConfigS and target-programming-language ("my" in TCL)
LcConfigIncludeCallF fConfigIncludeCall
internal - callback call function
LC_CBP fConfigIncludeData
callback data - internal used for config_include_fn_t callback
LcSettingDeleteFreeF fSettingDeleteFree
internal - callback data-free function
union LcConfigS::@0 super
LC_CBP fSettingDeleteData
callback data - internal used for config_include_fn_t callback
LcConfigIncludeFreeF fConfigIncludeFree
internal - callback data-free function
config_t * nat
internal - link between LcConfigS and libconfig
MK_PTR fConfigIncludeHook
internal - link between LcConfigS and target-programming-language ("my" in TCL)
config_t natdata
internal - predefined storage used for 'nat' pointer
LcSettingDeleteCallF fSettingDeleteCall
internal - callback call function
struct MkObjectS obj
Class to represent a configuration-setting of the of the libconfig library …
MK_OBJ instances