theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_lc.h
Go to the documentation of this file.
1
9/* LABEL-START */
10#pragma once
11
12#include "LibLcConfig_lc.h"
13/* LABEL-END */
14
16
17/* MARK_S ################################################################ */
18/* ### ### */
19/* ### C O N F I G - S E T T I N G - A P I ### */
20/* ### ### */
21/* ####################################################################### */
22
28
38__parser__(const,class-overload=MkObjectLog)
41 LC_CFSN const setting ,
43 MK_DBG const debug __parser__(default=0),
44 MK_STRN const callfunc __parser__(default=F#FUNC),
45 MK_I32 const lvl __parser__(default=0)
47
48/*
52__parser__(class-overload=MkObjectToString)
53LC_EXTERN MK_STRN MK_DECL LcSettingToString_RT (
54 MK_PARSER_RT
55 MK_OBJN const inst __parser__(null-allowed)
56) MK_ATTR_RT_INSTANCE;
57*/
58
59/*****************************************************************************/
60/* */
61/* inline functions */
62/* */
63/*****************************************************************************/
64
65// =========================================================================
66// BEGIN-LcSettingC-fupu - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
67
68// -> no data
69
70// END-LcSettingC-fupu - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
71
72// =========================================================================
73// BEGIN-LcSettingC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
74
75#ifndef PARSE_C_HEADER_TO_META
76
77 // doc-key: LcSettingC,LcSettingC-Get,oc_
78
81 LC_INSTANCE_HDL(setting);
83 }
84
87 LC_INSTANCE_HDL(setting);
88 return LcSettingC_ObjNew(config_setting_get_member(setting->nat, name));
89 }
90
91 // doc-key: LcSettingC,LcSettingC-Get,om_
92
95 LC_INSTANCE_HDL(setting);
96 return (MK_BOOL)config_setting_get_bool(setting->nat);
97 }
98
101 LC_INSTANCE_HDL(setting);
102 return (MK_BOOL)config_setting_get_bool_elem(setting->nat, idx);
103 }
104
107 LC_INSTANCE_HDL(setting);
108 return config_setting_get_float(setting->nat);
109 }
110
113 LC_INSTANCE_HDL(setting);
114 return config_setting_get_float_elem(setting->nat, idx);
115 }
116
119 LC_INSTANCE_HDL(setting);
120 return (enum LcConfigFormatE)config_setting_get_format(setting->nat);
121 }
122
125 LC_INSTANCE_HDL(setting);
126 return (MK_PTR)config_setting_get_hook(setting->nat);
127 }
128
131 LC_INSTANCE_HDL(setting);
132 return config_setting_get_int(setting->nat);
133 }
134
137 LC_INSTANCE_HDL(setting);
138 return config_setting_get_int64(setting->nat);
139 }
140
143 LC_INSTANCE_HDL(setting);
144 return config_setting_get_int64_elem(setting->nat, idx);
145 }
146
149 LC_INSTANCE_HDL(setting);
150 return config_setting_get_int_elem(setting->nat, idx);
151 }
152
155 LC_INSTANCE_HDL(setting);
156 MK_STRN __retVal__L = config_setting_get_string(setting->nat);
157 return __retVal__L;
158 }
159
162 LC_INSTANCE_HDL(setting);
163 MK_STRN __retVal__L = config_setting_get_string_elem(setting->nat, idx);
164 return __retVal__L;
165 }
166#endif
167
168#ifndef PARSE_C_HEADER_TO_META
169
170 // doc-key: LcSettingC,LcSettingC-Is,om_
171
177
180 LC_INSTANCE_HDL(setting);
181 return config_setting_is_array(setting->nat);
182 }
183
186 LC_INSTANCE_HDL(setting);
187 return config_setting_is_group(setting->nat);
188 }
189
192 LC_INSTANCE_HDL(setting);
193 return config_setting_is_list(setting->nat);
194 }
195
198 LC_INSTANCE_HDL(setting);
199 return config_setting_is_number(setting->nat);
200 }
201
204 LC_INSTANCE_HDL(setting);
205 return config_setting_is_root(setting->nat);
206 }
207
210 LC_INSTANCE_HDL(setting);
211 return (MK_BOOL)config_setting_is_scalar(setting->nat);
212 }
213#endif
214
215#ifndef PARSE_C_HEADER_TO_META
216
217 // doc-key: LcSettingC,LcSettingC-Lookup,oc_
218
221 LC_INSTANCE_HDL(setting);
222 return LcSettingC_ObjNew(config_setting_lookup(setting->nat, path));
223 }
224
225 // doc-key: LcSettingC,LcSettingC-Lookup,omo
226
228 mk_inline enum MkErrorE LcSettingLookupBool (LC_CFSN setting, MK_STRN name, MK_BOOL *value_out) {
229 LC_INSTANCE_HDL(setting);
230 MK_I32 value_out_val = 0;
231 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_bool(setting->nat, name, &value_out_val);
232 *value_out = (MK_BOOL)(value_out_val);
233 LcErrorE_Check(setting, errVal);
234 return MK_OK;
235 error:
236 return MK_ERROR;
237 }
238
240 mk_inline enum MkErrorE LcSettingLookupFloat (LC_CFSN setting, MK_STRN name, MK_DBL *value_out) {
241 LC_INSTANCE_HDL(setting);
242 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_float(setting->nat, name, value_out);
243 LcErrorE_Check(setting, errVal);
244 return MK_OK;
245 error:
246 return MK_ERROR;
247 }
248
250 mk_inline enum MkErrorE LcSettingLookupInt (LC_CFSN setting, MK_STRN name, MK_I32 *value_out) {
251 LC_INSTANCE_HDL(setting);
252 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_int(setting->nat, name, value_out);
253 LcErrorE_Check(setting, errVal);
254 return MK_OK;
255 error:
256 return MK_ERROR;
257 }
258
260 mk_inline enum MkErrorE LcSettingLookupInt64 (LC_CFSN setting, MK_STRN name, MK_I64 *value_out) {
261 LC_INSTANCE_HDL(setting);
262 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_int64(setting->nat, name, value_out);
263 LcErrorE_Check(setting, errVal);
264 return MK_OK;
265 error:
266 return MK_ERROR;
267 }
268
271 LC_INSTANCE_HDL(setting);
272 enum LcErrorE errVal = (enum LcErrorE)config_setting_lookup_string(setting->nat, name, value_out);
273 LcErrorE_Check(setting, errVal);
274 return MK_OK;
275 error:
276 return MK_ERROR;
277 }
278#endif
279
280#ifndef PARSE_C_HEADER_TO_META
281
282 // doc-key: LcSettingC,LcSettingC-Misc,oc_
283
289
290 // doc-key: LcSettingC,LcSettingC-Misc,om_
291
294 LC_INSTANCE_HDL(setting);
295 return config_setting_index(setting->nat);
296 }
297
300 LC_INSTANCE_HDL(setting);
301 return config_setting_length(setting->nat);
302 }
303
306 LC_INSTANCE_HDL(setting);
307 MK_STRN __retVal__L = config_setting_name(setting->nat);
308 return __retVal__L;
309 }
310
313 LC_INSTANCE_HDL(parent);
314 enum LcErrorE errVal = (enum LcErrorE)config_setting_remove(parent->nat, name);
315 LcErrorE_Check(parent, errVal);
316 return MK_OK;
317 error:
318 return MK_ERROR;
319 }
320
323 LC_INSTANCE_HDL(parent);
324 enum LcErrorE errVal = (enum LcErrorE)config_setting_remove_elem(parent->nat, (MK_U32)idx);
325 LcErrorE_Check(parent, errVal);
326 return MK_OK;
327 error:
328 return MK_ERROR;
329 }
330
333 LC_INSTANCE_HDL(setting);
334 MK_STRN __retVal__L = config_setting_source_file(setting->nat);
335 return __retVal__L;
336 }
337
340 LC_INSTANCE_HDL(setting);
341 return (MK_I32)config_setting_source_line(setting->nat);
342 }
343
346 LC_INSTANCE_HDL(setting);
347 return (enum LcConfigTypeE)config_setting_type(setting->nat);
348 }
349#endif
350
351#ifndef PARSE_C_HEADER_TO_META
352
353 // doc-key: LcSettingC,LcSettingC-Set,oc_
354
357 LC_INSTANCE_HDL(setting);
358 return LcSettingC_ObjNew(config_setting_set_bool_elem(setting->nat, idx, value));
359 }
360
363 LC_INSTANCE_HDL(setting);
364 return LcSettingC_ObjNew(config_setting_set_float_elem(setting->nat, idx, value));
365 }
366
369 LC_INSTANCE_HDL(setting);
370 return LcSettingC_ObjNew(config_setting_set_int64_elem(setting->nat, idx, value));
371 }
372
375 LC_INSTANCE_HDL(setting);
376 return LcSettingC_ObjNew(config_setting_set_int_elem(setting->nat, idx, value));
377 }
378
381 LC_INSTANCE_HDL(setting);
382 return LcSettingC_ObjNew(config_setting_set_string_elem(setting->nat, idx, value));
383 }
384
385 // doc-key: LcSettingC,LcSettingC-Set,om_
386
389 LC_INSTANCE_HDL(setting);
390 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_bool(setting->nat, value);
391 LcErrorE_Check(setting, errVal);
392 return MK_OK;
393 error:
394 return MK_ERROR;
395 }
396
399 LC_INSTANCE_HDL(setting);
400 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_float(setting->nat, value);
401 LcErrorE_Check(setting, errVal);
402 return MK_OK;
403 error:
404 return MK_ERROR;
405 }
406
409 LC_INSTANCE_HDL(setting);
410 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_format(setting->nat, format);
411 LcErrorE_Check(setting, errVal);
412 return MK_OK;
413 error:
414 return MK_ERROR;
415 }
416
419 LC_INSTANCE_HDL(setting);
420 config_setting_set_hook(setting->nat, (MK_PTR)(hook));
421 }
422
425 LC_INSTANCE_HDL(setting);
426 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_int(setting->nat, value);
427 LcErrorE_Check(setting, errVal);
428 return MK_OK;
429 error:
430 return MK_ERROR;
431 }
432
435 LC_INSTANCE_HDL(setting);
436 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_int64(setting->nat, value);
437 LcErrorE_Check(setting, errVal);
438 return MK_OK;
439 error:
440 return MK_ERROR;
441 }
442
445 LC_INSTANCE_HDL(setting);
446 enum LcErrorE errVal = (enum LcErrorE)config_setting_set_string(setting->nat, value);
447 LcErrorE_Check(setting, errVal);
448 return MK_OK;
449 error:
450 return MK_ERROR;
451 }
452#endif
453
454#ifndef PARSE_C_HEADER_TO_META
455
456 // doc-key: LcSettingC,LcSettingC-TOR,oC_
457
460 LC_INSTANCE_HDL(parent);
461 return LcSettingC_ObjCreate(config_setting_add(parent->nat, name, __type));
462 }
463#endif
464
465// END-LcSettingC-inline - created by 'c_Native.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
466
467// =================================================================================================
468// OVERLOAD
469
475 LC_CFS setting,
476 MK_STRN name,
477 enum LcConfigTypeE cfgtype
478) {
479 config_setting_t* mbr = config_setting_get_member(setting->nat,name);
480 if (mbr == NULL) {
481 mbr = config_setting_add ( setting->nat, name, cfgtype );
482 }
483 return LcSettingC_ObjNew(mbr);
484}
485
488__parser__(doc-group=TOR)
491 return LcConfigC_ObjNew(setting->nat->config);
492}
493
500 const LC_CFS setting,
501 MK_STRN name
502) {
503 return config_setting_get_member(setting->nat,name) != NULL;
504}
505
506// end c++ save definition
tag: nhi1-release-250425
#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:188
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
#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