Line data Source code
1 0 : /* 2 : * Copyright (c) 2024 Nordic Semiconductor ASA 3 : * 4 : * SPDX-License-Identifier: Apache-2.0 5 : */ 6 : 7 : #ifndef H_MCUMGR_ENUM_MGMT_CALLBACKS_ 8 : #define H_MCUMGR_ENUM_MGMT_CALLBACKS_ 9 : 10 : #ifdef __cplusplus 11 : extern "C" { 12 : #endif 13 : 14 : /** 15 : * @brief MCUmgr enum_mgmt callback API 16 : * @defgroup mcumgr_callback_api_enum_mgmt MCUmgr enum_mgmt callback API 17 : * @ingroup mcumgr_callback_api 18 : * @{ 19 : */ 20 : 21 : /** 22 : * Structure provided in the #MGMT_EVT_OP_ENUM_MGMT_DETAILS notification callback: This callback 23 : * function is called once per command group when the detail command is used, it can be used to 24 : * return additional information/fields in the response. 25 : */ 26 1 : struct enum_mgmt_detail_output { 27 : /** The group that is currently being enumerated. */ 28 1 : const struct mgmt_group *group; 29 : 30 : /** 31 : * The zcbor encoder which is currently being used to output group information, additional 32 : * fields to the group can be added using this. 33 : */ 34 1 : zcbor_state_t *zse; 35 : }; 36 : 37 : /** 38 : * @} 39 : */ 40 : 41 : #ifdef __cplusplus 42 : } 43 : #endif 44 : 45 : #endif