diff options
Diffstat (limited to 'ble/BluetoothImpl.h')
-rw-r--r-- | ble/BluetoothImpl.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ble/BluetoothImpl.h b/ble/BluetoothImpl.h index 3f4615e..648961f 100644 --- a/ble/BluetoothImpl.h +++ b/ble/BluetoothImpl.h @@ -221,9 +221,14 @@ protected: class DefaultBluetoothAdapter : protected LogSetup, public BluetoothAdapter { public: + + string getName() override { + return _name; + }; + protected: - DefaultBluetoothAdapter(Mac &mac) : - LogSetup("BluetoothAdapter"), mac(mac) { + DefaultBluetoothAdapter(const string name, Mac &mac) : + LogSetup("BluetoothAdapter"), _name(name), mac(mac) { } Mac const &getMac() override { @@ -231,12 +236,9 @@ protected: }; Mac &mac; + const string _name; }; -shared_ptr<BluetoothAdapter> getAdapterImpl(int hciDevice); - -void shutdownImpl(); - } }; |