Zigbee Protocol Controller 1.6.0
datastore_internals.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
14#ifndef DATASTORE_INTERNALS_H
15#define DATASTORE_INTERNALS_H
16
17#include <sqlite3.h>
18
19// Datastore tables
21#define DATASTORE_TABLE_INT "uic_kv_int"
23#define DATASTORE_TABLE_BLOB "uic_kv_blob"
25#define DATASTORE_TABLE_ATTRIBUTES "uic_attributes"
26
27// Private variable shared among this component.
28extern sqlite3 *db;
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
40int datastore_exec_sql(const char *sql);
41
49
57
65
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif // DATASTORE_INTERNALS_H
sl_status_t datastore_attribute_table_init()
Attribute table initialization.
Definition: datastore_attributes.c:59
sl_status_t datastore_attribute_statement_teardown()
Statement teardown for the attribute table.
Definition: datastore_attributes.c:205
sl_status_t datastore_attribute_statement_init()
Statement initialization for the attribute table.
Definition: datastore_attributes.c:122
sl_status_t datastore_table_init()
Generic datastore table initialization.
Definition: datastore.c:44
sqlite3 * db
Definition: datastore_fixt.c:35
int datastore_exec_sql(const char *sql)
Helper function to execute SQL statement and check for errors.
Definition: datastore_internals.c:33
uint32_t sl_status_t
Definition: sl_status.h:139