Zephyr Project API
3.3.0
A Scalable Open Source RTOS
handlers.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef H_MCUMGR_MGMT_HANDLERS_
8
#define H_MCUMGR_MGMT_HANDLERS_
9
10
#include <
zephyr/kernel.h
>
11
#include <
zephyr/sys/util_macro.h
>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
/* __cplusplus */
16
25
typedef
void (*
mcumgr_handler_init_t
)(void);
26
28
struct
mcumgr_handler {
30
const
mcumgr_handler_init_t
init;
31
};
42
#define MCUMGR_HANDLER_DEFINE(name, _init) \
43
STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
44
.init = _init, \
45
}
46
47
#ifdef __cplusplus
48
}
49
#endif
/* __cplusplus */
50
55
#endif
/* H_MCUMGR_MGMT_HANDLERS_ */
mcumgr_handler_init_t
void(* mcumgr_handler_init_t)(void)
Definition:
handlers.h:25
kernel.h
Public kernel APIs.
util_macro.h
Macro utilities.
include
zephyr
mgmt
mcumgr
mgmt
handlers.h
Generated on Fri Jun 9 2023 14:09:43 for Zephyr Project API by
1.9.2