Zigbee Protocol Controller 1.6.0
datastore.h File Reference
#include <inttypes.h>
#include <stdbool.h>
#include "sl_status.h"

Go to the source code of this file.

Typedefs

typedef const char * datastore_key_t
 

Functions

sl_status_t datastore_init (const char *database_path)
 Initialize the Datastore component. More...
 
sl_status_t datastore_start_transaction ()
 start a datastore transaction More...
 
sl_status_t datastore_commit_transaction ()
 commit an open transaction More...
 
sl_status_t datastore_teardown ()
 Tear down the Datastore component. More...
 
sl_status_t datastore_store_int (datastore_key_t key, int64_t value)
 Store integer in the persistent datastore. More...
 
sl_status_t datastore_fetch_int (datastore_key_t key, int64_t *value)
 Fetch integer from the persistent datastore. More...
 
sl_status_t datastore_store_arr (datastore_key_t key, const uint8_t *value, unsigned int size)
 Store array in the persistent datastore. More...
 
sl_status_t datastore_fetch_arr (datastore_key_t key, uint8_t *value, unsigned int *size)
 Fetch array from the persistent datastore. More...
 
bool datastore_contains_arr (datastore_key_t key)
 Check if the datastore contains an array value for given key. More...
 
bool datastore_contains_int (datastore_key_t key)
 Check if the datastore contains an int value for given key. More...
 
bool datastore_is_initialized ()
 Checks if the datastore is initialized and can be used. More...