![]() |
OpenICC Documentation
git-devel
OpenICC provides a simple Color Management configuration API
|
High level Configuration Object. More...
Public Member Functions | |
openiccDB_s * | openiccDB_NewFrom (const char *top_key_name, openiccSCOPE_e scope) |
create a new DB object More... | |
void | openiccDB_Release (openiccDB_s **db) |
free a DB object More... | |
int | openiccDB_GetString (openiccDB_s *db, const char *xpath, const char **value) |
get a value More... | |
int | openiccDB_GetKeyNames (openiccDB_s *db, const char *xpath, int child_levels, openiccAlloc_f alloc, openiccDeAlloc_f dealloc, char ***key_names, int *n) |
get a filtered list of key names More... | |
High level Configuration Object.
Holds cascaded sets of keys inside a text/json representation.
int openiccDB_GetKeyNames | ( | openiccDB_s * | db, |
const char * | xpath, | ||
int | child_levels, | ||
openiccAlloc_f | alloc, | ||
openiccDeAlloc_f | dealloc, | ||
char *** | key_names, | ||
int * | n | ||
) |
get a filtered list of key names
[in] | db | a data base object |
[in] | xpath | top key name to filter for |
[in] | child_levels | how deeply nested child levels are desired; 0 - means all levels |
[in] | alloc | user allocation function; optional - default: malloc |
[out] | key_names | found full keys with path part; optional |
[out] | n | number of found keys; optional |
int openiccDB_GetString | ( | openiccDB_s * | db, |
const char * | xpath, | ||
const char ** | value | ||
) |
get a value
[in] | db | a data base object |
[in] | xpath | key name to ask for |
[out] | value | found value; optional |
openiccDB_s * openiccDB_NewFrom | ( | const char * | top_key_name, |
openiccSCOPE_e | scope | ||
) |
create a new DB object
Create a DB by scope. Locate the physical configuration DB's and store them inside a single object.
void openiccDB_Release | ( | openiccDB_s ** | db | ) |
free a DB object