mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Move constructor from transport to private section
parent
cf3ede0191
commit
0929478b7f
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue