Unify Framework Lib 1.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
Attribute Store callbacks registration module

Module handling the registration and invokation of callbacks functions for other components. More...

Functions

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. More...
 
void attribute_store_invoke_generic_callbacks (attribute_changed_event_t *change_event)
 Invoke all generic callback functions. More...
 
void attribute_store_invoke_touch_callbacks (attribute_store_node_t touched_node)
 Invokes all types of touch callbacks. More...
 
void attribute_store_invoke_touch_generic_callbacks (attribute_store_node_t touched_node)
 Invokes all generic touch callbacks. More...
 
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. More...
 
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. More...
 
void attribute_store_invoke_delete_callbacks (attribute_store_node_t deleted_node)
 Invoke all delete callback functions. More...
 
sl_status_t attribute_store_callbacks_init (void)
 Reset resources allocated for the attribute_store_callback module. More...
 
int attribute_store_callbacks_teardown (void)
 Frees resources allocated for the attribute_store_callback module. More...
 

Detailed Description

Module handling the registration and invokation of callbacks functions for other components.

Function Documentation

◆ attribute_store_callbacks_init()

sl_status_t attribute_store_callbacks_init ( void  )

Reset resources allocated for the attribute_store_callback module.

Returns
SL_STATUS_OK as it is always successful.

◆ attribute_store_callbacks_teardown()

int attribute_store_callbacks_teardown ( void  )

Frees resources allocated for the attribute_store_callback module.

Returns
0 as it is always successful.

◆ attribute_store_invoke_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.

Parameters
updated_nodeThe node handle of the node for which something has changed
typeTh etype of the node that has just changed
value_stateThe value state of the node that has just changed.
changeThe type of change that the node underwent

◆ attribute_store_invoke_delete_callbacks()

void attribute_store_invoke_delete_callbacks ( attribute_store_node_t  deleted_node)

Invoke all delete callback functions.

Parameters
deleted_nodeThe node handle of the node being deleted

◆ attribute_store_invoke_generic_callbacks()

void attribute_store_invoke_generic_callbacks ( attribute_changed_event_t change_event)

Invoke all generic callback functions.

Parameters
change_eventpointer to attribute meta data which describes what changed

◆ attribute_store_invoke_touch_callbacks()

void attribute_store_invoke_touch_callbacks ( attribute_store_node_t  touched_node)

Invokes all types of touch callbacks.

Parameters
touched_nodeThe node handle of the node that was touched.

◆ attribute_store_invoke_touch_generic_callbacks()

void attribute_store_invoke_touch_generic_callbacks ( attribute_store_node_t  touched_node)

Invokes all generic touch callbacks.

Parameters
touched_nodeThe node handle of the node that was touched.

◆ attribute_store_invoke_type_callbacks()

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.

Parameters
updated_nodeThe node handle of the node for which something has changed
typeThe type of the node that has just changed
changeThe type of change that the node underwent

◆ attribute_store_invoke_value_callbacks()

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.

Parameters
updated_nodeThe node handle of the node for which something has changed
typeThe type of the node that has just changed
value_stateThe value state of the node that has just changed.
changeThe type of change that the node underwent