theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - 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#ifdef META_DOXYGEN_SHOULD_SKIP_THIS
16 #undef BEGIN_LC_C_DECLS
17 #undef END_LC_C_DECLS
18 #if defined(META_COMPILE_AS_CC)
19 # define BEGIN_LC_C_DECLS namespace liblcconfig { using namespace libmkkernel;
20 # define END_LC_C_DECLS }
21 #elif defined(__cplusplus)
22 # define BEGIN_LC_C_DECLS extern "C" {
23 # define END_LC_C_DECLS }
24 #else
25 # define BEGIN_LC_C_DECLS /* empty */
26 # define END_LC_C_DECLS /* empty */
27 #endif
28#endif
29
30/* LABEL-END */
31
33
34/* MARK_S ################################################################ */
35/* ### ### */
36/* ### C O N F I G - S E T T I N G - A P I ### */
37/* ### ### */
38/* ####################################################################### */
39
45
55__parser__(const,class-overload=MkObjectLog)
58 LC_CFSN const setting ,
60 MK_DBG const debug __parser__(default=0),
61 MK_STRN const callfunc __parser__(default=F#FUNC),
62 MK_I32 const lvl __parser__(default=0)
64
65/*
69__parser__(class-overload=MkObjectToString)
70LC_EXTERN MK_STRN MK_DECL LcSettingToString_RT (
71 MK_PARSER_RT
72 MK_OBJN const inst __parser__(null-allowed)
73) MK_ATTR_RT_INSTANCE;
74*/
75
76/*****************************************************************************/
77/* */
78/* inline functions */
79/* */
80/*****************************************************************************/
81
82// =========================================================================
83// BEGIN-LcSettingC-fupu - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
84
85// -> no data
86
87// END-LcSettingC-fupu - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
88
89// =========================================================================
90// BEGIN-LcSettingC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
91
92#ifndef PARSE_C_HEADER_TO_META
93
94 // doc-key: LcSettingC,LcSettingC-Get,oc_
95
98 LC_INSTANCE_HDL(setting);
100 }
101
104 LC_INSTANCE_HDL(setting);
105 return LcSettingC_ObjNew(config_setting_get_member(setting->nat, name));
106 }
107
108 // doc-key: LcSettingC,LcSettingC-Get,om_
109
112 LC_INSTANCE_HDL(setting);
113 return (MK_BOOL)config_setting_get_bool(setting->nat);
114 }
115
118 LC_INSTANCE_HDL(setting);
119 return (MK_BOOL)config_setting_get_bool_elem(setting->nat, idx);
120 }
121
124 LC_INSTANCE_HDL(setting);
125 return config_setting_get_float(setting->nat);
126 }
127
130 LC_INSTANCE_HDL(setting);
131 return config_setting_get_float_elem(setting->nat, idx);
132 }
133
136 LC_INSTANCE_HDL(setting);
137 return (enum LcConfigFormatE)config_setting_get_format(setting->nat);
138 }
139
142 LC_INSTANCE_HDL(setting);
143 return (MK_PTR)config_setting_get_hook(setting->nat);
144 }
145
148 LC_INSTANCE_HDL(setting);
149 return config_setting_get_int(setting->nat);
150 }
151
154 LC_INSTANCE_HDL(setting);
155 return config_setting_get_int64(setting->nat);
156 }
157
160 LC_INSTANCE_HDL(setting);
161 return config_setting_get_int64_elem(setting->nat, idx);
162 }
163
166 LC_INSTANCE_HDL(setting);
167 return config_setting_get_int_elem(setting->nat, idx);
168 }
169
172 LC_INSTANCE_HDL(setting);
173 MK_STRN __retVal__L = config_setting_get_string(setting->nat);
174 return __retVal__L;
175 }
176
179 LC_INSTANCE_HDL(setting);
180 MK_STRN __retVal__L = config_setting_get_string_elem(setting->nat, idx);
181 return __retVal__L;
182 }
183#endif
184
185#ifndef PARSE_C_HEADER_TO_META
186
187 // doc-key: LcSettingC,LcSettingC-Is,om_
188
194
197 LC_INSTANCE_HDL(setting);
198 return config_setting_is_array(setting->nat);
199 }
200
203 LC_INSTANCE_HDL(setting);
204 return config_setting_is_group(setting->nat);
205 }
206
209 LC_INSTANCE_HDL(setting);
210 return config_setting_is_list(setting->nat);
211 }
212
215 LC_INSTANCE_HDL(setting);
216 return config_setting_is_number(setting->nat);
217 }
218
221 LC_INSTANCE_HDL(setting);
222 return config_setting_is_root(setting->nat);
223 }
224
227 LC_INSTANCE_HDL(setting);
228 return (MK_BOOL)config_setting_is_scalar(setting->nat);
229 }
230#endif
231
232#ifndef PARSE_C_HEADER_TO_META
233
234 // doc-key: LcSettingC,LcSettingC-Lookup,oc_
235
238 LC_INSTANCE_HDL(setting);
239 return LcSettingC_ObjNew(config_setting_lookup(setting->nat, path));
240 }
241
242 // doc-key: LcSettingC,LcSettingC-Lookup,omo
243
245 mk_inline enum MkErrorE LcSettingLookupBool (LC_CFSN setting, MK_STRN name, MK_BOOL *value_out) {
246 LC_INSTANCE_HDL(setting);
247 MK_I32 value_out_val = 0;
248 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_bool(setting->nat, name, &value_out_val);
249 *value_out = (MK_BOOL)(value_out_val);
250 LcErrorE_Check(setting, errVal);
251 return MK_OK;
252 error:
253 return MK_ERROR;
254 }
255
257 mk_inline enum MkErrorE LcSettingLookupFloat (LC_CFSN setting, MK_STRN name, MK_DBL *value_out) {
258 LC_INSTANCE_HDL(setting);
259 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_float(setting->nat, name, value_out);
260 LcErrorE_Check(setting, errVal);
261 return MK_OK;
262 error:
263 return MK_ERROR;
264 }
265
267 mk_inline enum MkErrorE LcSettingLookupInt (LC_CFSN setting, MK_STRN name, MK_I32 *value_out) {
268 LC_INSTANCE_HDL(setting);
269 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_int(setting->nat, name, value_out);
270 LcErrorE_Check(setting, errVal);
271 return MK_OK;
272 error:
273 return MK_ERROR;
274 }
275
277 mk_inline enum MkErrorE LcSettingLookupInt64 (LC_CFSN setting, MK_STRN name, MK_I64 *value_out) {
278 LC_INSTANCE_HDL(setting);
279 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_int64(setting->nat, name, value_out);
280 LcErrorE_Check(setting, errVal);
281 return MK_OK;
282 error:
283 return MK_ERROR;
284 }
285
288 LC_INSTANCE_HDL(setting);
289 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_string(setting->nat, name, value_out);
290 LcErrorE_Check(setting, errVal);
291 return MK_OK;
292 error:
293 return MK_ERROR;
294 }
295#endif
296
297#ifndef PARSE_C_HEADER_TO_META
298
299 // doc-key: LcSettingC,LcSettingC-Misc,oc_
300
306
307 // doc-key: LcSettingC,LcSettingC-Misc,om_
308
311 LC_INSTANCE_HDL(setting);
312 return config_setting_index(setting->nat);
313 }
314
317 LC_INSTANCE_HDL(setting);
318 return config_setting_length(setting->nat);
319 }
320
323 LC_INSTANCE_HDL(setting);
324 MK_STRN __retVal__L = config_setting_name(setting->nat);
325 return __retVal__L;
326 }
327
330 LC_INSTANCE_HDL(parent);
331 enum LcErrorE errVal = (enum LcErrorE)config_setting_remove(parent->nat, name);
332 LcErrorE_Check(parent, errVal);
333 return MK_OK;
334 error:
335 return MK_ERROR;
336 }
337
340 LC_INSTANCE_HDL(parent);
341 enum LcErrorE errVal = (enum LcErrorE)config_setting_remove_elem(parent->nat, (MK_U32)idx);
342 LcErrorE_Check(parent, errVal);
343 return MK_OK;
344 error:
345 return MK_ERROR;
346 }
347
350 LC_INSTANCE_HDL(setting);
351 MK_STRN __retVal__L = config_setting_source_file(setting->nat);
352 return __retVal__L;
353 }
354
357 LC_INSTANCE_HDL(setting);
358 return (MK_I32)config_setting_source_line(setting->nat);
359 }
360
363 LC_INSTANCE_HDL(setting);
364 return (enum LcConfigTypeE)config_setting_type(setting->nat);
365 }
366#endif
367
368#ifndef PARSE_C_HEADER_TO_META
369
370 // doc-key: LcSettingC,LcSettingC-Set,oc_
371
374 LC_INSTANCE_HDL(setting);
375 return LcSettingC_ObjNew(config_setting_set_bool_elem(setting->nat, idx, value));
376 }
377
380 LC_INSTANCE_HDL(setting);
381 return LcSettingC_ObjNew(config_setting_set_float_elem(setting->nat, idx, value));
382 }
383
386 LC_INSTANCE_HDL(setting);
387 return LcSettingC_ObjNew(config_setting_set_int64_elem(setting->nat, idx, value));
388 }
389
392 LC_INSTANCE_HDL(setting);
393 return LcSettingC_ObjNew(config_setting_set_int_elem(setting->nat, idx, value));
394 }
395
398 LC_INSTANCE_HDL(setting);
399 return LcSettingC_ObjNew(config_setting_set_string_elem(setting->nat, idx, value));
400 }
401
402 // doc-key: LcSettingC,LcSettingC-Set,om_
403
406 LC_INSTANCE_HDL(setting);
407 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_bool(setting->nat, value);
408 LcErrorE_Check(setting, errVal);
409 return MK_OK;
410 error:
411 return MK_ERROR;
412 }
413
416 LC_INSTANCE_HDL(setting);
417 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_float(setting->nat, value);
418 LcErrorE_Check(setting, errVal);
419 return MK_OK;
420 error:
421 return MK_ERROR;
422 }
423
426 LC_INSTANCE_HDL(setting);
427 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_format(setting->nat, format);
428 LcErrorE_Check(setting, errVal);
429 return MK_OK;
430 error:
431 return MK_ERROR;
432 }
433
436 LC_INSTANCE_HDL(setting);
437 config_setting_set_hook(setting->nat, (MK_PTR)(hook));
438 }
439
442 LC_INSTANCE_HDL(setting);
443 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_int(setting->nat, value);
444 LcErrorE_Check(setting, errVal);
445 return MK_OK;
446 error:
447 return MK_ERROR;
448 }
449
452 LC_INSTANCE_HDL(setting);
453 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_int64(setting->nat, value);
454 LcErrorE_Check(setting, errVal);
455 return MK_OK;
456 error:
457 return MK_ERROR;
458 }
459
462 LC_INSTANCE_HDL(setting);
463 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_string(setting->nat, value);
464 LcErrorE_Check(setting, errVal);
465 return MK_OK;
466 error:
467 return MK_ERROR;
468 }
469#endif
470
471#ifndef PARSE_C_HEADER_TO_META
472
473 // doc-key: LcSettingC,LcSettingC-TOR,oC_
474
477 LC_INSTANCE_HDL(parent);
478 return LcSettingC_ObjCreate(config_setting_add(parent->nat, name, __type));
479 }
480#endif
481
482// END-LcSettingC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
483
484// =================================================================================================
485// OVERLOAD
486
492 LC_CFS setting,
493 MK_STRN name,
494 enum LcConfigTypeE cfgtype
495) {
496 config_setting_t* mbr = config_setting_get_member(setting->nat,name);
497 if (mbr == NULL) {
498 mbr = config_setting_add ( setting->nat, name, cfgtype );
499 }
500 return LcSettingC_ObjNew(mbr);
501}
502
505__parser__(doc-group=TOR)
508 return LcConfigC_ObjNew(setting->nat->config);
509}
510
517 const LC_CFS setting,
518 MK_STRN name
519) {
520 return config_setting_get_member(setting->nat,name) != NULL;
521}
522
523// end c++ save definition
#define BEGIN_LC_C_DECLS
#define END_LC_C_DECLS
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:205
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:47
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:95
#define LcErrorE_Check(lc_hdl, PROC)
check on a liblcconfig error and convert into a liblcconfig error …
#define LC_ATTR_INSTANCE
#define LC_ATTR_RT_INSTANCE
#define LC_INSTANCE_HDL(x)
LC_CFS LcSettingC_ObjCreate(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
MK_I64 LcSettingGetInt64(LC_CFSN setting)
These functions return the value of the given setting …
MK_STRN LcSettingGetString(LC_CFSN setting)
These functions return the value of the given setting …
MK_BOOL LcSettingGetBoolElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
LC_CFS LcSettingGetElem(LC_CFSN setting, MK_I32 idx)
This function fetches the element at the given index index in the setting setting,...
MK_I64 LcSettingGetInt64Elem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
MK_BOOL LcSettingGetBool(LC_CFSN setting)
These functions return the value of the given setting …
MK_DBL LcSettingGetFloatElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
MK_I32 LcSettingGetIntElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
enum LcConfigFormatE LcSettingGetFormat(LC_CFSN setting)
These functions get and set the external format for the setting setting …
MK_STRN LcSettingGetStringElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
MK_I32 LcSettingGetInt(LC_CFSN setting)
These functions return the value of the given setting …
MK_PTR LcSettingGetHookHide(LC_CFSN setting)
These functions make it possible to attach arbitrary data to each setting structure,...
LC_CFG LcSettingGetConfig(LC_CFSN setting)
addon - return the LcConfigC from the LcSettingC …
LC_CFS LcSettingGetMember(LC_CFSN setting, MK_STRN name)
This function fetches the child setting named name from the group setting …
MK_DBL LcSettingGetFloat(LC_CFSN setting)
These functions return the value of the given setting …
MK_BOOL LcSettingIsNumber(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
MK_BOOL LcSettingIsScalar(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
MK_BOOL LcSettingIsAggregate(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
MK_BOOL LcSettingIsList(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
MK_BOOL LcSettingIsArray(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
MK_BOOL LcSettingIsRoot(LC_CFSN setting)
This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwis...
MK_BOOL LcSettingIsGroup(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
LC_CFS LcSettingLookup(LC_CFS setting, MK_STRN path)
This function locates a setting by a path path relative to the setting setting …
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 …
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 …
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 …
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 …
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 …
MK_BFL LcSettingLookupAll(LC_CFSN setting)
addon - read an entire configuration below setting into MkBufferListC …
enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...
LC_CFS LcSettingAddIfNotExists(LC_CFS setting, MK_STRN name, enum LcConfigTypeE cfgtype)
addon - add name with type only if not exists in the setting …
enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …
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...
MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …
enum MkErrorE LcSettingRemoveElem(LC_CFS parent, MK_I32 idx)
This function removes the child setting at the given index index from the setting parent,...
MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...
LC_CFS LcSettingParent(LC_CFSN setting)
This function returns the parent setting of the given setting, or NULL if setting is the root setting...
MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...
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 …
MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …
bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …
void LcSettingSetHookHide(LC_CFS setting, MK_PTR hook)
These functions make it possible to attach arbitrary data to each setting structure,...
enum MkErrorE LcSettingSetInt64(LC_CFS setting, MK_I64 value)
These functions set the value of the given setting to value …
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 …
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 …
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 …
enum MkErrorE LcSettingSetFloat(LC_CFS setting, MK_DBL value)
These functions set the value of the given setting to value …
enum MkErrorE LcSettingSetString(LC_CFS setting, MK_STRN value)
These functions set the value of the given setting to value …
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 …
enum MkErrorE LcSettingSetBool(LC_CFS setting, MK_BOOL value)
These functions set the value of the given setting to value …
enum MkErrorE LcSettingSetInt(LC_CFS setting, MK_I32 value)
These functions set the value of the given setting to value …
enum MkErrorE LcSettingSetFormat(LC_CFS setting, enum LcConfigFormatE format)
These functions get and set the external format for the setting setting …
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 …
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_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