Unify Framework Lib 1.6.0
attribute_store_callbacks.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 ATTRIBUTE_STORE_CALLBACKS_H
15#define ATTRIBUTE_STORE_CALLBACKS_H
16
17// Includes from this component
18#include "attribute_store.h"
19
29#ifdef __cplusplus
30extern "C" {
31#endif
32
34// Shared callback functions among the component
36
46 attribute_store_node_t updated_node,
50
57 attribute_changed_event_t *change_event);
58
65 attribute_store_node_t touched_node);
66
73 attribute_store_node_t touched_node);
74
87
99 attribute_store_node_t updated_node,
103
110 attribute_store_node_t deleted_node);
111
117
123
124#ifdef __cplusplus
125}
126#endif
127
130#endif // ATTRIBUTE_STORE_CALLBACKS_H
uint32_t attribute_store_type_t
Definition: attribute_store.h:50
attribute_store_change_t
Attribute Store type to indicate the modification type that triggered a callback.
Definition: attribute_store.h:112
attribute_store_node_value_state_t
This is the value state of a value.
Definition: attribute_store.h:121
datastore_attribute_id_t attribute_store_node_t
Handle to identify attribute store nodes.
Definition: attribute_store.h:101
sl_status_t attribute_store_callbacks_init(void)
Reset resources allocated for the attribute_store_callback module.
void attribute_store_invoke_delete_callbacks(attribute_store_node_t deleted_node)
Invoke all delete callback functions.
int attribute_store_callbacks_teardown(void)
Frees resources allocated for the attribute_store_callback module.
void attribute_store_invoke_type_callbacks(attribute_store_node_t updated_node, attribute_store_type_t type, attribute_store_change_t change)
Invoke all callback functions associated to an attribute id.
void attribute_store_invoke_generic_callbacks(attribute_changed_event_t *change_event)
Invoke all generic callback functions.
void attribute_store_invoke_value_callbacks(attribute_store_node_t updated_node, attribute_store_type_t type, attribute_store_node_value_state_t value_state, attribute_store_change_t change)
Invoke all callback functions associated to an attribute id / value state combination.
void attribute_store_invoke_touch_callbacks(attribute_store_node_t touched_node)
Invokes all types of touch callbacks.
void attribute_store_invoke_callbacks(attribute_store_node_t updated_node, attribute_store_type_t type, attribute_store_node_value_state_t value_state, attribute_store_change_t change)
Invokes all 3 types of callback functions.
void attribute_store_invoke_touch_generic_callbacks(attribute_store_node_t touched_node)
Invokes all generic touch callbacks.
uint32_t sl_status_t
Definition: sl_status.h:139
structure that contains information about the current state of a given node in the attribute store.
Definition: attribute_store.h:147