golcconfig 9.0
Loading...
Searching...
No Matches
Macros | Functions
LcSettingC_TOR_C_API

various functions to create, initialize and destroy a LcSettingC More...

+ Collaboration diagram for LcSettingC_TOR_C_API:

Macros

#define LcGetCfsFromNat(_nat)   LC_SET_T(LcSettingC,config_setting_get_hook,_nat)
 helper for LcSettingC_ObjNew
 

Functions

LC_EXTERN LC_CFS LcSettingAddP (LC_CFS parent, MK_STRN name, enum LcConfigTypeE __type)
 Non-inline replacement for LcSettingAdd
 
LC_EXTERN LC_CFS LcSettingFromHandleP (MK_LONG const exporthdl)
 Non-inline replacement for LcSettingFromHandle
 
LC_CFS LcSettingC_ObjNew (config_setting_t *hdl)
 return Programming-Language-Micro-Kernel instance from hdl
 
LC_CFS LcSettingC_ObjCreate (config_setting_t *hdl)
 return Programming-Language-Micro-Kernel instance from hdl
 
LC_CFS LcSettingFromHandle (MK_LONG const exporthdl)
 return a LcSettingC from exporthdl
 
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 …
 

Detailed Description

various functions to create, initialize and destroy a LcSettingC

A new LcSettingC is not created directly but is the return value of a "lookup".
The two functions:

need the unique path of the "setting" in the configuration file.

Macro Definition Documentation

◆ LcGetCfsFromNat

#define LcGetCfsFromNat (   _nat)    LC_SET_T(LcSettingC,config_setting_get_hook,_nat)

helper for LcSettingC_ObjNew

Definition at line 203 of file LcSettingC_lc.h.

Function Documentation

◆ LcSettingAdd()

mk_inline LC_CFS LcSettingAdd ( LC_CFS  parent,
MK_STRN  name,
enum LcConfigTypeE  __type 
)
inline

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 601 of file LcSettingC_lc.h.

◆ LcSettingAddP()

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

Non-inline replacement for LcSettingAdd

◆ LcSettingC_ObjCreate()

LC_CFS LcSettingC_ObjCreate ( config_setting_t hdl)
inline

return Programming-Language-Micro-Kernel instance from hdl

Definition at line 216 of file LcSettingC_lc.h.

+ Here is the caller graph for this function:

◆ LcSettingC_ObjNew()

LC_CFS LcSettingC_ObjNew ( config_setting_t hdl)
inline

return Programming-Language-Micro-Kernel instance from hdl

Definition at line 208 of file LcSettingC_lc.h.

+ Here is the caller graph for this function:

◆ LcSettingFromHandle()

mk_inline LC_CFS LcSettingFromHandle ( MK_LONG const  exporthdl)
inline

return a LcSettingC from exporthdl

reference for original

Definition at line 224 of file LcSettingC_lc.h.

◆ LcSettingFromHandleP()

LC_EXTERN LC_CFS LcSettingFromHandleP ( MK_LONG const  exporthdl)

Non-inline replacement for LcSettingFromHandle