theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_TOR_C_API

LcSettingC - various functions to create, initialize and destroy … More...

+ Collaboration diagram for LcSettingC_TOR_C_API:

Functions

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, array, or list …
 

LcSettingC - LcSettingC_TOR_C_API - function

LC_CFS LcSettingAddP (LC_CFS parent, MK_STRN name, enum LcConfigTypeE __type)
 Non-inline replacement for LcSettingAdd
 
LC_CFG LcSettingGetConfigP (LC_CFSN setting)
 Non-inline replacement for LcSettingGetConfig
 

Detailed Description

LcSettingC - various functions to create, initialize and destroy …

Function Documentation

◆ LcSettingAdd()

static LC_CFS LcSettingAdd ( LC_CFS parent,
MK_STRN name,
enum LcConfigTypeE __type )
inlinestatic

This function adds a new child setting or element to the setting parent, which must be a group, array, or list …

If parent is an array or list, the name parameter is ignored and may be NULL.

The function returns the new setting on success, or NULL if parent is not a group, array, or list; or if there is already a child setting of parent named name; or if type is invalid. If type is a scalar type, the new setting will have a default value of 0, 0.0, false, or NULL, as appropriate.

Definition at line 459 of file LcSettingC_lc.h.

459 {
460 LC_INSTANCE_HDL(parent);
461 return LcSettingC_ObjCreate(config_setting_add(parent->nat, name, __type));
462 }
#define LC_INSTANCE_HDL(x)
static LC_CFS LcSettingC_ObjCreate(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
LIBCONFIG_API config_setting_t * config_setting_add(config_setting_t *parent, const char *name, int __type)
config_setting_t * nat
internal - link between LcSettingS and native library
+ Here is the caller graph for this function:

◆ LcSettingAddP()

LC_CFS LcSettingAddP ( LC_CFS parent,
MK_STRN name,
enum LcConfigTypeE __type )

Non-inline replacement for LcSettingAdd

◆ LcSettingGetConfigP()

LC_CFG LcSettingGetConfigP ( LC_CFSN setting)

Non-inline replacement for LcSettingGetConfig