LcSettingC - various functions to get data from a setting … More...
Functions | |
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 … | |
LC_CFS | LcSettingGetMember (LC_CFSN setting, MK_STRN name) |
This function fetches the child setting named name from the group setting … | |
MK_BOOL | LcSettingGetBool (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 … | |
MK_DBL | LcSettingGetFloat (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 … | |
enum LcConfigFormatE | LcSettingGetFormat (LC_CFSN setting) |
These functions get and set the external format for the setting setting … | |
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 … | |
MK_I32 | LcSettingGetInt (LC_CFSN setting) |
These functions return the value of the given setting … | |
MK_I64 | LcSettingGetInt64 (LC_CFSN setting) |
These functions return the value of the given 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_I32 | LcSettingGetIntElem (LC_CFSN setting, MK_I32 idx) |
These functions return the value at the specified index index in the setting setting … | |
MK_STRN | LcSettingGetString (LC_CFSN setting) |
These functions return the value of the given setting … | |
MK_STRN | LcSettingGetStringElem (LC_CFSN setting, MK_I32 idx) |
These functions return the value at the specified index index in the setting setting … | |
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 111 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 117 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 507 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 97 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 123 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 129 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetFloatElem …
Non-inline replacement for LcSettingGetFloat …
|
inline |
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 135 of file LcSettingC_lc.h.
LC_EXTERN 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 141 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 147 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 153 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 159 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 165 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 103 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 171 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 178 of file LcSettingC_lc.h.
Non-inline replacement for LcSettingGetStringElem …
Non-inline replacement for LcSettingGetString …