LcSettingC - various functions to get data from a setting … More...
Functions | |
static LC_CFS | LcSettingGetElem (LC_CFSN setting, MK_I32 idx) |
This function fetches the element at the given index index in the setting setting, which must be an array, list, or group … | |
static LC_CFS | LcSettingGetMember (LC_CFSN setting, MK_STRN name) |
This function fetches the child setting named name from the group setting … | |
static MK_BOOL | LcSettingGetBool (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_DBL | LcSettingGetFloat (LC_CFSN setting) |
These functions return the value of the given setting … | |
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 enum LcConfigFormatE | LcSettingGetFormat (LC_CFSN setting) |
These functions get and set the external format for the setting setting … | |
static MK_PTR | LcSettingGetHookHide (LC_CFSN setting) |
These functions make it possible to attach arbitrary data to each setting structure, for instance a ''wrapper'' or ''peer'' object written in another programming language … | |
static MK_I32 | LcSettingGetInt (LC_CFSN setting) |
These functions return the value of the given setting … | |
static MK_I64 | LcSettingGetInt64 (LC_CFSN setting) |
These functions return the value of the given 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 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_STRN | LcSettingGetString (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 LC_CFG | LcSettingGetConfig (LC_CFSN setting) |
addon - return the LcConfigC from the LcSettingC … | |
LcSettingC - various functions to get data from a setting …
These functions return the value of the given setting …
If the type of the setting does not match the type requested, a 0 or NULL
value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.
Definition at line 97 of file LcSettingC_lc.h.
These functions return the value at the specified index index in the setting setting …
If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL
. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.
Definition at line 103 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetBoolElem …
Non-inline replacement for LcSettingGetBool …
addon - return the LcConfigC from the LcSettingC …
Definition at line 493 of file LcSettingC_lc.h.
This function fetches the element at the given index index in the setting setting, which must be an array, list, or group …
It returns the requested setting on success, or NULL
if index is out of range or if setting is not an array, list, or group.
Definition at line 83 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetElem …
These functions return the value of the given setting …
If the type of the setting does not match the type requested, a 0 or NULL
value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.
Definition at line 109 of file LcSettingC_lc.h.
These functions return the value at the specified index index in the setting setting …
If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL
. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.
Definition at line 115 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetFloatElem …
Non-inline replacement for LcSettingGetFloat …
|
static |
These functions get and set the external format for the setting setting …
The format must be one of the constants CONFIG_FORMAT_DEFAULT or CONFIG_FORMAT_HEX. All settings support the CONFIG_FORMAT_DEFAULT format. The CONFIG_FORMAT_HEX format specifies hexadecimal formatting for integer values, and hence only applies to settings of type CONFIG_TYPE_INT and CONFIG_TYPE_INT64. If format is invalid for the given setting, it is ignored.
If a non-default format has not been set for the setting, SettingGetFormat returns the default format for the configuration, as set by ConfigSetDefaultFormat.
SettingSetFormat returns CONFIG_TRUE on success and CONFIG_FALSE on failure.
Definition at line 121 of file LcSettingC_lc.h.
enum LcConfigFormatE LcSettingGetFormatP | ( | LC_CFSN | setting | ) |
Non-inline replacement for LcSettingGetFormat …
These functions make it possible to attach arbitrary data to each setting structure, for instance a ''wrapper'' or ''peer'' object written in another programming language …
The destructor function, if one has been supplied via a call to config_set_destructor, will be called by the library to dispose of this data when the setting itself is destroyed. There is no default destructor.
Definition at line 127 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetHookHide …
These functions return the value of the given setting …
If the type of the setting does not match the type requested, a 0 or NULL
value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.
Definition at line 133 of file LcSettingC_lc.h.
These functions return the value of the given setting …
If the type of the setting does not match the type requested, a 0 or NULL
value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.
Definition at line 139 of file LcSettingC_lc.h.
These functions return the value at the specified index index in the setting setting …
If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL
. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.
Definition at line 145 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetInt64Elem …
Non-inline replacement for LcSettingGetInt64 …
These functions return the value at the specified index index in the setting setting …
If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL
. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.
Definition at line 151 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetIntElem …
Non-inline replacement for LcSettingGetInt …
This function fetches the child setting named name from the group setting …
It returns the requested setting on success, or NULL
if the setting was not found or if setting is not a group.
Definition at line 89 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetMember …
These functions return the value of the given setting …
If the type of the setting does not match the type requested, a 0 or NULL
value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.
Definition at line 157 of file LcSettingC_lc.h.
These functions return the value at the specified index index in the setting setting …
If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL
. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.
Definition at line 164 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetStringElem …
Non-inline replacement for LcSettingGetString …