Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
12
13#ifndef H_MCUMGR_MGMT_HANDLERS_
14#define H_MCUMGR_MGMT_HANDLERS_
15
16#include <zephyr/kernel.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
30
32typedef void (*mcumgr_handler_init_t)(void);
33
35struct mcumgr_handler {
37 const mcumgr_handler_init_t init;
38};
40
49#define MCUMGR_HANDLER_DEFINE(name, _init) \
50 const STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
51 .init = _init, \
52 }
53
54#ifdef __cplusplus
55}
56#endif /* __cplusplus */
57
61
62#endif /* H_MCUMGR_MGMT_HANDLERS_ */
void(* mcumgr_handler_init_t)(void)
Type definition for a MCUmgr handler initialisation function.
Definition handlers.h:32
Public kernel APIs.
Iterable sections helpers.
Macro utilities.