theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
LcSettingC_lc.h
Go to the documentation of this file.
1
12/* LABEL-START */
13#pragma once
14
15#include "LibLcConfig_lc.h"
16/* LABEL-END */
17
19
20/* MARK_S ################################################################ */
21/* ### ### */
22/* ### C O N F I G - S E T T I N G - A P I ### */
23/* ### ### */
24/* ####################################################################### */
25
31
41__parser__(const,class-overload=MkObjectLog)
44 LC_CFSN const setting ,
46 MK_DBG const debug __parser__(default=0),
47 MK_STRN const callfunc __parser__(default=F#FUNC),
48 MK_I32 const lvl __parser__(default=0)
50
51/*
55__parser__(class-overload=MkObjectToString)
56LC_EXTERN MK_STRN MK_DECL LcSettingToString_RT (
57 MK_PARSER_RT
58 MK_OBJN const inst __parser__(null-allowed)
59) MK_ATTR_RT_INSTANCE;
60*/
61
62/*****************************************************************************/
63/* */
64/* inline functions */
65/* */
66/*****************************************************************************/
67
68// =========================================================================
69// BEGIN-LcSettingC-fupu - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
70
71// -> no data
72
73// END-LcSettingC-fupu - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
74
75// =========================================================================
76// BEGIN-LcSettingC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
77
78#ifndef PARSE_C_HEADER_TO_META
79
80 // doc-key: LcSettingC,LcSettingC-Get,oc_
81
84 LC_INSTANCE_HDL(setting);
86 }
87
90 LC_INSTANCE_HDL(setting);
91 return LcSettingC_ObjNew(config_setting_get_member(setting->nat, name));
92 }
93
94 // doc-key: LcSettingC,LcSettingC-Get,om_
95
98 LC_INSTANCE_HDL(setting);
99 return (MK_BOOL)config_setting_get_bool(setting->nat);
100 }
101
104 LC_INSTANCE_HDL(setting);
105 return (MK_BOOL)config_setting_get_bool_elem(setting->nat, idx);
106 }
107
110 LC_INSTANCE_HDL(setting);
111 return config_setting_get_float(setting->nat);
112 }
113
116 LC_INSTANCE_HDL(setting);
117 return config_setting_get_float_elem(setting->nat, idx);
118 }
119
122 LC_INSTANCE_HDL(setting);
123 return (enum LcConfigFormatE)config_setting_get_format(setting->nat);
124 }
125
128 LC_INSTANCE_HDL(setting);
129 return (MK_PTR)config_setting_get_hook(setting->nat);
130 }
131
134 LC_INSTANCE_HDL(setting);
135 return config_setting_get_int(setting->nat);
136 }
137
140 LC_INSTANCE_HDL(setting);
141 return config_setting_get_int64(setting->nat);
142 }
143
146 LC_INSTANCE_HDL(setting);
147 return config_setting_get_int64_elem(setting->nat, idx);
148 }
149
152 LC_INSTANCE_HDL(setting);
153 return config_setting_get_int_elem(setting->nat, idx);
154 }
155
158 LC_INSTANCE_HDL(setting);
159 MK_STRN __retVal__L = config_setting_get_string(setting->nat);
160 return __retVal__L;
161 }
162
165 LC_INSTANCE_HDL(setting);
166 MK_STRN __retVal__L = config_setting_get_string_elem(setting->nat, idx);
167 return __retVal__L;
168 }
169#endif
170
171#ifndef PARSE_C_HEADER_TO_META
172
173 // doc-key: LcSettingC,LcSettingC-Is,om_
174
180
183 LC_INSTANCE_HDL(setting);
184 return config_setting_is_array(setting->nat);
185 }
186
189 LC_INSTANCE_HDL(setting);
190 return config_setting_is_group(setting->nat);
191 }
192
195 LC_INSTANCE_HDL(setting);
196 return config_setting_is_list(setting->nat);
197 }
198
201 LC_INSTANCE_HDL(setting);
202 return config_setting_is_number(setting->nat);
203 }
204
207 LC_INSTANCE_HDL(setting);
208 return config_setting_is_root(setting->nat);
209 }
210
213 LC_INSTANCE_HDL(setting);
214 return (MK_BOOL)config_setting_is_scalar(setting->nat);
215 }
216#endif
217
218#ifndef PARSE_C_HEADER_TO_META
219
220 // doc-key: LcSettingC,LcSettingC-Lookup,oc_
221
224 LC_INSTANCE_HDL(setting);
225 return LcSettingC_ObjNew(config_setting_lookup(setting->nat, path));
226 }
227
228 // doc-key: LcSettingC,LcSettingC-Lookup,omo
229
231 mk_inline enum MkErrorE LcSettingLookupBool (LC_CFSN setting, MK_STRN name, MK_BOOL *value_out) {
232 LC_INSTANCE_HDL(setting);
233 MK_I32 value_out_val = 0;
234 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_bool(setting->nat, name, &value_out_val);
235 *value_out = (MK_BOOL)(value_out_val);
236 LcErrorE_Check(setting, errVal);
237 return MK_OK;
238 error:
239 return MK_ERROR;
240 }
241
243 mk_inline enum MkErrorE LcSettingLookupFloat (LC_CFSN setting, MK_STRN name, MK_DBL *value_out) {
244 LC_INSTANCE_HDL(setting);
245 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_float(setting->nat, name, value_out);
246 LcErrorE_Check(setting, errVal);
247 return MK_OK;
248 error:
249 return MK_ERROR;
250 }
251
253 mk_inline enum MkErrorE LcSettingLookupInt (LC_CFSN setting, MK_STRN name, MK_I32 *value_out) {
254 LC_INSTANCE_HDL(setting);
255 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_int(setting->nat, name, value_out);
256 LcErrorE_Check(setting, errVal);
257 return MK_OK;
258 error:
259 return MK_ERROR;
260 }
261
263 mk_inline enum MkErrorE LcSettingLookupInt64 (LC_CFSN setting, MK_STRN name, MK_I64 *value_out) {
264 LC_INSTANCE_HDL(setting);
265 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_int64(setting->nat, name, value_out);
266 LcErrorE_Check(setting, errVal);
267 return MK_OK;
268 error:
269 return MK_ERROR;
270 }
271
274 LC_INSTANCE_HDL(setting);
275 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_string(setting->nat, name, value_out);
276 LcErrorE_Check(setting, errVal);
277 return MK_OK;
278 error:
279 return MK_ERROR;
280 }
281#endif
282
283#ifndef PARSE_C_HEADER_TO_META
284
285 // doc-key: LcSettingC,LcSettingC-Misc,oc_
286
292
293 // doc-key: LcSettingC,LcSettingC-Misc,om_
294
297 LC_INSTANCE_HDL(setting);
298 return config_setting_index(setting->nat);
299 }
300
303 LC_INSTANCE_HDL(setting);
304 return config_setting_length(setting->nat);
305 }
306
309 LC_INSTANCE_HDL(setting);
310 MK_STRN __retVal__L = config_setting_name(setting->nat);
311 return __retVal__L;
312 }
313
316 LC_INSTANCE_HDL(parent);
317 enum LcErrorE errVal = (enum LcErrorE)config_setting_remove(parent->nat, name);
318 LcErrorE_Check(parent, errVal);
319 return MK_OK;
320 error:
321 return MK_ERROR;
322 }
323
326 LC_INSTANCE_HDL(parent);
327 enum LcErrorE errVal = (enum LcErrorE)config_setting_remove_elem(parent->nat, (MK_U32)idx);
328 LcErrorE_Check(parent, errVal);
329 return MK_OK;
330 error:
331 return MK_ERROR;
332 }
333
336 LC_INSTANCE_HDL(setting);
337 MK_STRN __retVal__L = config_setting_source_file(setting->nat);
338 return __retVal__L;
339 }
340
343 LC_INSTANCE_HDL(setting);
344 return (MK_I32)config_setting_source_line(setting->nat);
345 }
346
349 LC_INSTANCE_HDL(setting);
350 return (enum LcConfigTypeE)config_setting_type(setting->nat);
351 }
352#endif
353
354#ifndef PARSE_C_HEADER_TO_META
355
356 // doc-key: LcSettingC,LcSettingC-Set,oc_
357
360 LC_INSTANCE_HDL(setting);
361 return LcSettingC_ObjNew(config_setting_set_bool_elem(setting->nat, idx, value));
362 }
363
366 LC_INSTANCE_HDL(setting);
367 return LcSettingC_ObjNew(config_setting_set_float_elem(setting->nat, idx, value));
368 }
369
372 LC_INSTANCE_HDL(setting);
373 return LcSettingC_ObjNew(config_setting_set_int64_elem(setting->nat, idx, value));
374 }
375
378 LC_INSTANCE_HDL(setting);
379 return LcSettingC_ObjNew(config_setting_set_int_elem(setting->nat, idx, value));
380 }
381
384 LC_INSTANCE_HDL(setting);
385 return LcSettingC_ObjNew(config_setting_set_string_elem(setting->nat, idx, value));
386 }
387
388 // doc-key: LcSettingC,LcSettingC-Set,om_
389
392 LC_INSTANCE_HDL(setting);
393 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_bool(setting->nat, value);
394 LcErrorE_Check(setting, errVal);
395 return MK_OK;
396 error:
397 return MK_ERROR;
398 }
399
402 LC_INSTANCE_HDL(setting);
403 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_float(setting->nat, value);
404 LcErrorE_Check(setting, errVal);
405 return MK_OK;
406 error:
407 return MK_ERROR;
408 }
409
412 LC_INSTANCE_HDL(setting);
413 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_format(setting->nat, format);
414 LcErrorE_Check(setting, errVal);
415 return MK_OK;
416 error:
417 return MK_ERROR;
418 }
419
422 LC_INSTANCE_HDL(setting);
423 config_setting_set_hook(setting->nat, (MK_PTR)(hook));
424 }
425
428 LC_INSTANCE_HDL(setting);
429 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_int(setting->nat, value);
430 LcErrorE_Check(setting, errVal);
431 return MK_OK;
432 error:
433 return MK_ERROR;
434 }
435
438 LC_INSTANCE_HDL(setting);
439 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_int64(setting->nat, value);
440 LcErrorE_Check(setting, errVal);
441 return MK_OK;
442 error:
443 return MK_ERROR;
444 }
445
448 LC_INSTANCE_HDL(setting);
449 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_string(setting->nat, value);
450 LcErrorE_Check(setting, errVal);
451 return MK_OK;
452 error:
453 return MK_ERROR;
454 }
455#endif
456
457#ifndef PARSE_C_HEADER_TO_META
458
459 // doc-key: LcSettingC,LcSettingC-TOR,oC_
460
463 LC_INSTANCE_HDL(parent);
464 return LcSettingC_ObjCreate(config_setting_add(parent->nat, name, __type));
465 }
466#endif
467
468// END-LcSettingC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
469
470// =================================================================================================
471// OVERLOAD
472
478 LC_CFS setting,
479 MK_STRN name,
480 enum LcConfigTypeE cfgtype
481) {
482 config_setting_t* mbr = config_setting_get_member(setting->nat,name);
483 if (mbr == NULL) {
484 mbr = config_setting_add ( setting->nat, name, cfgtype );
485 }
486 return LcSettingC_ObjNew(mbr);
487}
488
491__parser__(doc-group=TOR)
494 return LcConfigC_ObjNew(setting->nat->config);
495}
496
503 const LC_CFS setting,
504 MK_STRN name
505) {
506 return config_setting_get_member(setting->nat,name) != NULL;
507}
508
509// end c++ save definition
LibLcConfig_lc.h - 03 Apr 2025 - aotto1968.
#define BEGIN_LC_C_DECLS
#define END_LC_C_DECLS
static MK_ARTIFICIAL LC_CFG LcConfigC_ObjNew(config_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define LC_EXTERN
static library
LcErrorE
Signals an error and is used as the return value of a function …
Definition LcEnum_lc.h:191
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:33
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:81
#define LcErrorE_Check(lc_hdl, PROC)
check on a tcllcconfig error and convert into a tcllcconfig 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 …
static LC_CFS LcSettingC_ObjCreate(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
static MK_STRN LcSettingGetString(LC_CFSN setting)
These functions return the value of the given setting …
static LC_CFG LcSettingGetConfig(LC_CFSN setting)
addon - return the LcConfigC from the LcSettingC …
static LC_CFS LcSettingGetElem(LC_CFSN setting, MK_I32 idx)
This function fetches the element at the given index index in the setting setting,...
static MK_BOOL LcSettingGetBool(LC_CFSN setting)
These functions return the value of the given setting …
static MK_DBL LcSettingGetFloat(LC_CFSN setting)
These functions return the value of the given setting …
static MK_BOOL LcSettingGetBoolElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_I64 LcSettingGetInt64Elem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static LC_CFS LcSettingGetMember(LC_CFSN setting, MK_STRN name)
This function fetches the child setting named name from the group setting …
static enum LcConfigFormatE LcSettingGetFormat(LC_CFSN setting)
These functions get and set the external format for the setting setting …
static MK_I32 LcSettingGetInt(LC_CFSN setting)
These functions return the value of the given setting …
static MK_I32 LcSettingGetIntElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_I64 LcSettingGetInt64(LC_CFSN setting)
These functions return the value of the given setting …
static MK_STRN LcSettingGetStringElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_PTR LcSettingGetHookHide(LC_CFSN setting)
These functions make it possible to attach arbitrary data to each setting structure,...
static MK_DBL LcSettingGetFloatElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_BOOL LcSettingIsArray(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsNumber(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static MK_BOOL LcSettingIsRoot(LC_CFSN setting)
This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwis...
static MK_BOOL LcSettingIsList(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsAggregate(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static MK_BOOL LcSettingIsGroup(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsScalar(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static enum MkErrorE LcSettingLookupString(LC_CFSN setting, MK_STRN name, MK_STRN *value_out)
These functions look up the value of the child setting named name of the setting setting …
static LC_CFS LcSettingLookup(LC_CFS setting, MK_STRN path)
This function locates a setting by a path path relative to the setting setting …
static enum MkErrorE LcSettingLookupBool(LC_CFSN setting, MK_STRN name, MK_BOOL *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupInt(LC_CFSN setting, MK_STRN name, MK_I32 *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupInt64(LC_CFSN setting, MK_STRN name, MK_I64 *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupFloat(LC_CFSN setting, MK_STRN name, MK_DBL *value_out)
These functions look up the value of the child setting named name of the setting setting …
MK_BFL LcSettingLookupAll(LC_CFSN setting)
addon - read an entire configuration below setting into MkBufferListC …
static LC_CFS LcSettingParent(LC_CFSN setting)
This function returns the parent setting of the given setting, or NULL if setting is the root setting...
static MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …
static enum MkErrorE LcSettingRemoveElem(LC_CFS parent, MK_I32 idx)
This function removes the child setting at the given index index from the setting parent,...
static MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …
static bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …
static MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...
static MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...
static enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...
void LcSettingLog_RT(MK_RT mkrt, LC_CFSN const setting, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
log the setting …
static enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …
static MK_I32 LcSettingLength(LC_CFSN setting)
This function returns the number of settings in a group, or the number of elements in a list or array...
static LC_CFS LcSettingAddIfNotExists(LC_CFS setting, MK_STRN name, enum LcConfigTypeE cfgtype)
addon - add name with type only if not exists in the setting …
static LC_CFS LcSettingSetFloatElem(LC_CFS setting, MK_I32 idx, MK_DBL value)
These functions set the value at the specified index index in the setting setting to value …
static void LcSettingSetHookHide(LC_CFS setting, MK_PTR hook)
These functions make it possible to attach arbitrary data to each setting structure,...
static enum MkErrorE LcSettingSetInt64(LC_CFS setting, MK_I64 value)
These functions set the value of the given setting to value …
static enum MkErrorE LcSettingSetBool(LC_CFS setting, MK_BOOL value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingSetIntElem(LC_CFS setting, MK_I32 idx, MK_I32 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetString(LC_CFS setting, MK_STRN value)
These functions set the value of the given setting to value …
static enum MkErrorE LcSettingSetFormat(LC_CFS setting, enum LcConfigFormatE format)
These functions get and set the external format for the setting setting …
static LC_CFS LcSettingSetBoolElem(LC_CFS setting, MK_I32 idx, MK_I32 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetFloat(LC_CFS setting, MK_DBL value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingSetStringElem(LC_CFS setting, MK_I32 idx, MK_STRN value)
These functions set the value at the specified index index in the setting setting to value …
static LC_CFS LcSettingSetInt64Elem(LC_CFS setting, MK_I32 idx, MK_I64 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetInt(LC_CFS setting, MK_I32 value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingAdd(LC_CFS parent, MK_STRN name, enum LcConfigTypeE __type)
This function adds a new child setting or element to the setting parent, which must be a group,...
#define MK_PARSER_fmtobj
#define MK_DECL
#define mk_inline
MkErrorE
MK_ERROR
MK_OK
#define __parser__(...)
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
signed long long MK_I64
bool MK_BOOL
unsigned int MK_U32
double MK_DBL
signed int MK_I32
int MK_DBG
#define MkObjectLog(...)
#define MK_ATTR_RT_INSTANCE
#define MK_ATTR_INSTANCE
#define MK_PARSER_RT
LIBCONFIG_API int config_setting_get_bool(const config_setting_t *setting)
LIBCONFIG_API int config_setting_set_int(config_setting_t *setting, int value)
LIBCONFIG_API config_setting_t * config_setting_set_string_elem(config_setting_t *setting, int idx, const char *value)
LIBCONFIG_API int config_setting_lookup_int64(const config_setting_t *setting, const char *name, long long *value)
LIBCONFIG_API int config_setting_remove_elem(config_setting_t *parent, unsigned int idx)
LIBCONFIG_API config_setting_t * config_setting_set_float_elem(config_setting_t *setting, int idx, double value)
LIBCONFIG_API const char * config_setting_get_string_elem(const config_setting_t *setting, int idx)
LIBCONFIG_API config_setting_t * config_setting_get_member(const config_setting_t *setting, const char *name)
LIBCONFIG_API int config_setting_lookup_int(const config_setting_t *setting, const char *name, int *value)
LIBCONFIG_API config_setting_t * config_setting_add(config_setting_t *parent, const char *name, int __type)
LIBCONFIG_API const char * config_setting_get_string(const config_setting_t *setting)
#define config_setting_is_list(S)
#define config_setting_name(S)
#define config_setting_parent(S)
LIBCONFIG_API int config_setting_index(const config_setting_t *setting)
LIBCONFIG_API config_setting_t * config_setting_lookup(config_setting_t *setting, const char *path)
LIBCONFIG_API int config_setting_set_float(config_setting_t *setting, double value)
LIBCONFIG_API int config_setting_set_int64(config_setting_t *setting, long long value)
LIBCONFIG_API double config_setting_get_float(const config_setting_t *setting)
LIBCONFIG_API int config_setting_set_string(config_setting_t *setting, const char *value)
LIBCONFIG_API config_setting_t * config_setting_get_elem(const config_setting_t *setting, unsigned int idx)
LIBCONFIG_API int config_setting_set_format(config_setting_t *setting, short format)
LIBCONFIG_API void config_setting_set_hook(config_setting_t *setting, void *hook)
LIBCONFIG_API int config_setting_lookup_string(const config_setting_t *setting, const char *name, const char **value)
LIBCONFIG_API int config_setting_lookup_float(const config_setting_t *setting, const char *name, double *value)
#define config_setting_get_hook(S)
#define config_setting_source_line( S)
LIBCONFIG_API short config_setting_get_format(const config_setting_t *setting)
#define config_setting_is_group(S)
#define config_setting_is_array(S)
LIBCONFIG_API int config_setting_remove(config_setting_t *parent, const char *name)
LIBCONFIG_API int config_setting_get_bool_elem(const config_setting_t *setting, int idx)
LIBCONFIG_API int config_setting_get_int(const config_setting_t *setting)
LIBCONFIG_API int config_setting_length(const config_setting_t *setting)
LIBCONFIG_API int config_setting_set_bool(config_setting_t *setting, int value)
#define config_setting_is_root( S)
LIBCONFIG_API int config_setting_lookup_bool(const config_setting_t *setting, const char *name, int *value)
#define config_setting_source_file( S)
#define config_setting_type(S)
LIBCONFIG_API config_setting_t * config_setting_set_int_elem(config_setting_t *setting, int idx, int value)
#define config_setting_is_number(S)
LIBCONFIG_API int config_setting_is_scalar(const config_setting_t *setting)
LIBCONFIG_API double config_setting_get_float_elem(const config_setting_t *setting, int idx)
LIBCONFIG_API config_setting_t * config_setting_set_bool_elem(config_setting_t *setting, int idx, int value)
LIBCONFIG_API int config_setting_get_int_elem(const config_setting_t *setting, int idx)
LIBCONFIG_API long long config_setting_get_int64_elem(const config_setting_t *setting, int idx)
LIBCONFIG_API config_setting_t * config_setting_set_int64_elem(config_setting_t *setting, int idx, long long value)
LIBCONFIG_API int config_setting_is_aggregate(const config_setting_t *setting)
LIBCONFIG_API long long config_setting_get_int64(const config_setting_t *setting)
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …
config_setting_t * nat
internal - link between LcSettingS and native library
struct config_t * config