7#if !defined(TETENGO_PROPERTY_PROPERTYSET_H)
8#define TETENGO_PROPERTY_PROPERTYSET_H
17#if defined(__cplusplus)
21#if !defined(DOCUMENTATION)
22typedef struct tetengo_property_propertySet_tag tetengo_property_propertySet_t;
37tetengo_property_propertySet_t*
58 const tetengo_property_propertySet_t* p_property_set,
82 const tetengo_property_propertySet_t* p_property_set,
94 tetengo_property_propertySet_t* p_property_set,
109 const tetengo_property_propertySet_t* p_property_set,
112 size_t value_capacity);
122 tetengo_property_propertySet_t* p_property_set,
141#if defined(__cplusplus)
size_t tetengo_property_propertySet_getString(const tetengo_property_propertySet_t *p_property_set, const char *key, char *p_value, size_t value_capacity)
Returns the value in a string.
void tetengo_property_propertySet_setUint32(tetengo_property_propertySet_t *p_property_set, const char *key, uint32_t value)
Sets a value in an unsigned 32-bit integer.
bool tetengo_property_propertySet_getBool(const tetengo_property_propertySet_t *p_property_set, const char *key, bool *p_value)
Returns the value in a boolean.
void tetengo_property_propertySet_setString(tetengo_property_propertySet_t *p_property_set, const char *key, const char *value)
Sets a value in a string.
void tetengo_property_propertySet_setBool(tetengo_property_propertySet_t *p_property_set, const char *key, bool value)
Sets a value in a boolean.
void tetengo_property_propertySet_update(tetengo_property_propertySet_t *p_property_set)
Updates the property values to the latest state in the storage.
void tetengo_property_propertySet_destroy(const tetengo_property_propertySet_t *p_property_set)
Destroys a property set.
bool tetengo_property_propertySet_getUint32(const tetengo_property_propertySet_t *p_property_set, const char *key, uint32_t *p_value)
Returns the value in an unsigned 32-bit integer.
tetengo_property_propertySet_t * tetengo_property_propertySet_create(tetengo_property_storageLoader_t *p_storage_loader, const char *path)
Creates a property set.
void tetengo_property_propertySet_commit(const tetengo_property_propertySet_t *p_property_set)
Commits the property value changes to the storage.