BLE: Move constructor from transport to private section

pull/13475/head
Vincent Coubard 2020-08-21 15:58:27 +01:00
parent cf3ede0191
commit 0929478b7f
1 changed files with 12 additions and 12 deletions

View File

@ -164,16 +164,6 @@ public:
*/
static BLE &Instance();
/**
* Constructor for a handle to a BLE instance (the BLE stack). BLE handles
* are thin wrappers around a transport object (that is, ptr. to
* ble::BLEInstanceBase).
*
* @param[in] transport Ble transport used for the BLE instance.
* @note Cordio supports only one instance.
*/
BLE(ble::BLEInstanceBase &transport);
/**
* Get a reference to the BLE singleton corresponding to a given interface.
*
@ -455,6 +445,16 @@ public:
private:
friend class ble::BLEInstanceBase;
/**
* Constructor for a handle to a BLE instance (the BLE stack). BLE handles
* are thin wrappers around a transport object (that is, ptr. to
* ble::BLEInstanceBase).
*
* @param[in] transport Ble transport used for the BLE instance.
* @note Cordio supports only one instance.
*/
BLE(ble::BLEInstanceBase &transport);
/**
* Implementation of init() [internal to BLE_API].
*
@ -467,8 +467,8 @@ private:
private:
// Prevent copy construction and copy assignment of BLE.
BLE(const BLE &);
BLE &operator=(const BLE &);
BLE(const BLE &) = delete;
BLE &operator=(const BLE &) = delete;
private:
ble::BLEInstanceBase &transport; /* The device-specific backend */