130 const uint8_t *value,
bool datastore_contains_int(datastore_key_t key)
Check if the datastore contains an int value for given key.
Definition: datastore.c:293
sl_status_t datastore_store_arr(datastore_key_t key, const uint8_t *value, unsigned int size)
Store array in the persistent datastore.
Definition: datastore.c:279
sl_status_t datastore_store_int(datastore_key_t key, int64_t value)
Store integer in the persistent datastore.
Definition: datastore.c:269
sl_status_t datastore_fetch_int(datastore_key_t key, int64_t *value)
Fetch integer from the persistent datastore.
Definition: datastore.c:274
sl_status_t datastore_commit_transaction()
commit an open transaction
Definition: datastore.c:258
sl_status_t datastore_start_transaction()
start a datastore transaction
Definition: datastore.c:240
sl_status_t datastore_teardown()
Tear down the Datastore component.
Definition: datastore_fixt.c:113
sl_status_t datastore_fetch_arr(datastore_key_t key, uint8_t *value, unsigned int *size)
Fetch array from the persistent datastore.
Definition: datastore.c:286
bool datastore_is_initialized()
Checks if the datastore is initialized and can be used.
Definition: datastore.c:303
bool datastore_contains_arr(datastore_key_t key)
Check if the datastore contains an array value for given key.
Definition: datastore.c:298
sl_status_t datastore_init(const char *database_path)
Initialize the Datastore component.
Definition: datastore_fixt.c:99
const char * datastore_key_t
Definition: datastore.h:38
uint32_t sl_status_t
Definition: sl_status.h:139