1 /* 2 * Copyright (c) 2023 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef H_SMP_STUB_ 7 #define H_SMP_STUB_ 8 9 #include <inttypes.h> 10 #include <zephyr/net_buf.h> 11 #include <zephyr/mgmt/mcumgr/grp/img_mgmt/img_mgmt.h> 12 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 typedef void (*mcmgr_client_data_check_fn)(struct net_buf *nb); 19 20 void smp_stub_set_rx_data_verify(mcmgr_client_data_check_fn cb); 21 void smp_client_send_status_stub(int status); 22 void smp_client_response_buf_clean(void); 23 struct net_buf *smp_response_buf_allocation(void); 24 void stub_smp_client_transport_register(void); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* H_SMP_STUB_ */ 31