Zephyr API Documentation 4.0.0-rc3
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
7#ifndef H_MCUMGR_MGMT_HANDLERS_
8#define H_MCUMGR_MGMT_HANDLERS_
9
10#include <zephyr/kernel.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif /* __cplusplus */
17
26typedef void (*mcumgr_handler_init_t)(void);
27
29struct mcumgr_handler {
31 const mcumgr_handler_init_t init;
32};
43#define MCUMGR_HANDLER_DEFINE(name, _init) \
44 STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
45 .init = _init, \
46 }
47
48#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
56#endif /* H_MCUMGR_MGMT_HANDLERS_ */
void(* mcumgr_handler_init_t)(void)
Type definition for a MCUmgr handler initialisation function.
Definition handlers.h:26
Public kernel APIs.
Macro utilities.