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>
12
13#ifdef __cplusplus
14extern "C" {
15#endif /* __cplusplus */
16
25typedef void (*mcumgr_handler_init_t)(void);
26
28struct 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_ */
void(* mcumgr_handler_init_t)(void)
Definition: handlers.h:25
Public kernel APIs.
Macro utilities.