nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
event_handler_list.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef EVENT_HANDLER_LIST_H__
8#define EVENT_HANDLER_LIST_H__
9
10#include <modem/lte_lc.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/* Add the handler in the event handler list if not already present. */
18
19/* Remove the handler from the event handler list if present. */
21
22/* Dispatch events for the registered event handlers. */
23void event_handler_list_dispatch(const struct lte_lc_evt *const evt);
24
25/* Test if the handler list is empty. */
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif /* EVENT_HANDLER_LIST_H__ */
bool event_handler_list_is_empty(void)
void event_handler_list_dispatch(const struct lte_lc_evt *const evt)
int event_handler_list_handler_append(lte_lc_evt_handler_t handler)
int event_handler_list_handler_remove(lte_lc_evt_handler_t handler)
void(* lte_lc_evt_handler_t)(const struct lte_lc_evt *const evt)
Handler for LTE events.
Definition lte_lc.h:1776
LTE event.
Definition lte_lc.h:1576