host/util: move function doc to header file

This commit is contained in:
Hauke Petersen
2018-11-15 13:45:31 +01:00
committed by Andrzej Kaczmarek
parent ab35afaae2
commit 6fb0f8d3ea
2 changed files with 13 additions and 13 deletions
+13
View File
@@ -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
-13
View File
@@ -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)
{