nRF Connect SDK API
3.4.99
Toggle main menu visibility
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
13
extern
"C"
{
14
#endif
15
16
/* Add the handler in the event handler list if not already present. */
17
int
event_handler_list_handler_append
(
lte_lc_evt_handler_t
handler);
18
19
/* Remove the handler from the event handler list if present. */
20
int
event_handler_list_handler_remove
(
lte_lc_evt_handler_t
handler);
21
22
/* Dispatch events for the registered event handlers. */
23
void
event_handler_list_dispatch
(
const
struct
lte_lc_evt
*
const
evt);
24
25
/* Test if the handler list is empty. */
26
bool
event_handler_list_is_empty
(
void
);
27
28
#ifdef __cplusplus
29
}
30
#endif
31
32
#endif
/* EVENT_HANDLER_LIST_H__ */
event_handler_list_is_empty
bool event_handler_list_is_empty(void)
event_handler_list_dispatch
void event_handler_list_dispatch(const struct lte_lc_evt *const evt)
event_handler_list_handler_append
int event_handler_list_handler_append(lte_lc_evt_handler_t handler)
event_handler_list_handler_remove
int event_handler_list_handler_remove(lte_lc_evt_handler_t handler)
lte_lc_evt_handler_t
void(* lte_lc_evt_handler_t)(const struct lte_lc_evt *const evt)
Handler for LTE events.
Definition
lte_lc.h:2016
lte_lc.h
lte_lc_evt
LTE event.
Definition
lte_lc.h:1770
lib
lte_link_control
include
common
event_handler_list.h
Generated on
for nRF Connect SDK API by
1.17.0