|
static int8_t | zigpc_observable_get_event_index (const struct zigpc_observable *observable, const zigpc_observer_event_t event) |
| return index of the registered observable event, if found More...
|
|
static int8_t | zigpc_observable_get_event_callback_index (const struct zigpc_observable_event_entry *event_entry, const zigpc_observer_callback_t observer) |
| return index of the observer callback, if found More...
|
|
sl_status_t | zigpc_observable_notify (const struct zigpc_observable *observable, const zigpc_observer_event_t event, void *data) |
| Inform Observers of observable instance of an event with data. More...
|
|
static sl_status_t | zigpc_observable_insert_event_callback (struct zigpc_observable_event_entry *event_entry, const zigpc_observer_callback_t callback) |
| Insert observer callback to be part of observable event. More...
|
|
sl_status_t | zigpc_observable_register (struct zigpc_observable *observable, const zigpc_observer_event_t event, zigpc_observer_callback_t callback) |
| Register an observer with a corresponding event to observable instance. More...
|
|
sl_status_t | zigpc_observable_unregister (struct zigpc_observable *observable, const zigpc_observer_event_t event, const zigpc_observer_callback_t callback) |
| Unregister an observer with a corresponding event from observable instance. More...
|
|
static bool | zigpc_observable_event_list_has_duplicates (const zigpc_observer_event_t *event_list, const uint8_t event_count) |
| Check if observable event list has duplicate entries. More...
|
|
sl_status_t | zigpc_observable_init (struct zigpc_observable *observable, const zigpc_observer_event_t *event_list, const uint8_t event_count) |
| Initialize observable with an approved event list. More...
|
|
void | zigpc_observable_clear (struct zigpc_observable *observable) |
| Stop all observers from being notified. More...
|
|