From 6fb0f8d3ea6f520b970c4cb504172a9e4508383a Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 15 Nov 2018 10:33:36 +0100 Subject: [PATCH] host/util: move function doc to header file --- nimble/host/util/include/host/util/util.h | 13 +++++++++++++ nimble/host/util/src/addr.c | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/nimble/host/util/include/host/util/util.h b/nimble/host/util/include/host/util/util.h index 7588192b3..3f07c005a 100644 --- a/nimble/host/util/include/host/util/util.h +++ b/nimble/host/util/include/host/util/util.h @@ -24,6 +24,19 @@ extern "C" { #endif +/** + * Tries to configure the device with at least one Bluetooth address. + * Addresses are restored in a hardware-specific fashion. + * + * @param prefer_random Whether to attempt to restore a random address + * before checking if a public address has + * already been configured. + * + * @return 0 on success; + * BLE_HS_ENOADDR if the device does not have any + * available addresses. + * Other BLE host core code on error. + */ int ble_hs_util_ensure_addr(int prefer_random); #ifdef __cplusplus diff --git a/nimble/host/util/src/addr.c b/nimble/host/util/src/addr.c index ba666867a..58dcb182d 100644 --- a/nimble/host/util/src/addr.c +++ b/nimble/host/util/src/addr.c @@ -70,19 +70,6 @@ ble_hs_util_ensure_rand_addr(void) return 0; } -/** - * Tries to configure the device with at least one Bluetooth address. - * Addresses are restored in a hardware-specific fasion. - * - * @param prefer_random Whether to attempt to restore a random address - * before checking if a public address has - * already been configured. - * - * @return 0 on success; - * BLE_HS_ENOADDR if the device does not have any - * available addresses. - * Other BLE host core code on error. - */ int ble_hs_util_ensure_addr(int prefer_random) {