1 /* 2 * Copyright Runtime.io 2018. All rights reserved. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** @file 8 * @brief Bluetooth transport for the mcumgr SMP protocol. 9 */ 10 11 #ifndef ZEPHYR_INCLUDE_MGMT_SMP_BT_H_ 12 #define ZEPHYR_INCLUDE_MGMT_SMP_BT_H_ 13 14 #include <zephyr/types.h> 15 struct bt_conn; 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 /** 22 * @brief Registers the SMP Bluetooth service. 23 * 24 * @return 0 on success; negative error code on failure. 25 */ 26 int smp_bt_register(void); 27 28 /** 29 * @brief Unregisters the SMP Bluetooth service. 30 * 31 * @return 0 on success; negative error code on failure. 32 */ 33 int smp_bt_unregister(void); 34 35 #ifdef __cplusplus 36 } 37 #endif 38 39 #endif 40