Unify Framework Lib 1.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
attribute_callbacks.hpp
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_CALLBACKS_HPP
15#define ATTRIBUTE_CALLBACKS_HPP
16
17#include "sl_status.h"
18#include "attribute_store.h"
19
20#include <functional>
21
22// Your code here
23namespace attribute_store {
24
27
28
42
57 node_changed_callback callback_function,
60
61} // namespace attribute_store
62#endif // ATTRIBUTE_CALLBACKS_HPP
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
Definition: attribute_callbacks.hpp:23
std::function< void(attribute_store_node_t, attribute_store_change_t)> node_changed_callback
Definition: attribute_callbacks.hpp:26
void register_callback_by_type_and_state(node_changed_callback callback_function, attribute_store_type_t type, attribute_store_node_value_state_t value_state)
Register a callback function to any node with a given type and value state.
void register_callback_by_type(node_changed_callback callback_function, attribute_store_type_t type)
Register a callback function to any node with a given type.
SL Status Codes.