|
GATE
C/C++ Framework
|
application configuration access utilities More...
Macros | |
| #define | GATE_APPCONFIG_SCOPE_LOCAL 0x0000 |
| #define | GATE_APPCONFIG_SCOPE_GLOBAL 0x0001 |
| #define | GATE_APPCONFIG_SCOPE_NATIVE 0x1000 |
Functions | |
| GATE_SYSTEM_API gate_result_t | gate_appconfig_read_text (gate_string_t const *app_name, gate_string_t const *source_name, gate_string_t const *subcategory, gate_enumint_t scope, gate_string_t const *key, gate_string_t *value) |
| Read a string config parameter (/app/source/category/key) | |
| GATE_SYSTEM_API gate_result_t | gate_appconfig_read_num (gate_string_t const *app_name, gate_string_t const *source_name, gate_string_t const *subcategory, gate_enumint_t scope, gate_string_t const *key, gate_int32_t *num) |
| Read an integer config parameter (/app/source/category/key) | |
| GATE_SYSTEM_API gate_result_t | gate_appconfig_write_text (gate_string_t const *app_name, gate_string_t const *source_name, gate_string_t const *subcategory, gate_enumint_t scope, gate_string_t const *key, gate_string_t const *value) |
| Write a string config parameter (/app/source/category/key) | |
| GATE_SYSTEM_API gate_result_t | gate_appconfig_write_num (gate_string_t const *app_name, gate_string_t const *source_name, gate_string_t const *subcategory, gate_enumint_t scope, gate_string_t const *key, gate_int32_t num) |
| Write a string config parameter (/app/source/category/key) | |
| GATE_SYSTEM_API gate_result_t | gate_appconfig_remove (gate_string_t const *app_name, gate_string_t const *source_name, gate_string_t const *subcategory, gate_enumint_t scope, gate_string_t const *key) |
| Removes a config parameter (/app/source/category/key) | |
application configuration access utilities
| #define GATE_APPCONFIG_SCOPE_LOCAL 0x0000 |
Local user specific configuration
| #define GATE_APPCONFIG_SCOPE_GLOBAL 0x0001 |
Global system specific configuration
| #define GATE_APPCONFIG_SCOPE_NATIVE 0x1000 |
Native application configuration (identified by source_name)
| GATE_SYSTEM_API gate_result_t gate_appconfig_read_text | ( | gate_string_t const * | app_name, |
| gate_string_t const * | source_name, | ||
| gate_string_t const * | subcategory, | ||
| gate_enumint_t | scope, | ||
| gate_string_t const * | key, | ||
| gate_string_t * | value ) |
Read a string config parameter (/app/source/category/key)
| [in] | app_name | Name of application (1st level identifier) |
| [in] | source_name | Name of configuration source (2nd level identifier) |
| [in] | subcategory | Parameter subcategory to access (3rd level identifier) |
| [in] | scope | Config storage scope, GATE_APPCONFIG_SCOPE_* value |
| [in] | key | Parameter key to read |
| [out] | value | Pointer to string to be initialized with retrieved parameter |
| GATE_SYSTEM_API gate_result_t gate_appconfig_read_num | ( | gate_string_t const * | app_name, |
| gate_string_t const * | source_name, | ||
| gate_string_t const * | subcategory, | ||
| gate_enumint_t | scope, | ||
| gate_string_t const * | key, | ||
| gate_int32_t * | num ) |
Read an integer config parameter (/app/source/category/key)
| [in] | app_name | Name of application (1st level identifier) |
| [in] | source_name | Name of configuration source (2nd level identifier) |
| [in] | subcategory | Parameter subcategory to access (3rd level identifier) |
| [in] | scope | Config storage scope, GATE_APPCONFIG_SCOPE_* value |
| [in] | key | Parameter key to read |
| [out] | num | Pointer to integer to be initialized with retrieved parameter value |
| GATE_SYSTEM_API gate_result_t gate_appconfig_write_text | ( | gate_string_t const * | app_name, |
| gate_string_t const * | source_name, | ||
| gate_string_t const * | subcategory, | ||
| gate_enumint_t | scope, | ||
| gate_string_t const * | key, | ||
| gate_string_t const * | value ) |
Write a string config parameter (/app/source/category/key)
| [in] | app_name | Name of application (1st level identifier) |
| [in] | source_name | Name of configuration source (2nd level identifier) |
| [in] | subcategory | Parameter subcategory to access (3rd level identifier) |
| [in] | scope | Config storage scope, GATE_APPCONFIG_SCOPE_* value |
| [in] | key | Parameter key to write |
| [in] | value | Pointer to string to be written into configuration store |
| GATE_SYSTEM_API gate_result_t gate_appconfig_write_num | ( | gate_string_t const * | app_name, |
| gate_string_t const * | source_name, | ||
| gate_string_t const * | subcategory, | ||
| gate_enumint_t | scope, | ||
| gate_string_t const * | key, | ||
| gate_int32_t | num ) |
Write a string config parameter (/app/source/category/key)
| [in] | app_name | Name of application (1st level identifier) |
| [in] | source_name | Name of configuration source (2nd level identifier) |
| [in] | subcategory | Parameter subcategory to access (3rd level identifier) |
| [in] | scope | Config storage scope, GATE_APPCONFIG_SCOPE_* value |
| [in] | key | Parameter key to write |
| [in] | num | Integer to be written into configuration store |
| GATE_SYSTEM_API gate_result_t gate_appconfig_remove | ( | gate_string_t const * | app_name, |
| gate_string_t const * | source_name, | ||
| gate_string_t const * | subcategory, | ||
| gate_enumint_t | scope, | ||
| gate_string_t const * | key ) |
Removes a config parameter (/app/source/category/key)
| [in] | app_name | Name of application (1st level identifier) |
| [in] | source_name | Name of configuration source (2nd level identifier) |
| [in] | subcategory | Parameter subcategory to access (3rd level identifier) |
| [in] | scope | Config storage scope, GATE_APPCONFIG_SCOPE_* value |
| [in] | key | Parameter key to delete |