diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-30 14:37:06 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-30 14:37:06 +0200 |
commit | 441cd0b11186d66493798551e1102eb246f1af9f (patch) | |
tree | 3cdb5b1dea6b782cbf59e172807f9dc15e7bd418 /ble/BluetoothImpl.h | |
parent | af63bd5688731b57551ac161c0dad26a0b4557d7 (diff) | |
download | ble-toys-441cd0b11186d66493798551e1102eb246f1af9f.tar.gz ble-toys-441cd0b11186d66493798551e1102eb246f1af9f.tar.bz2 ble-toys-441cd0b11186d66493798551e1102eb246f1af9f.tar.xz ble-toys-441cd0b11186d66493798551e1102eb246f1af9f.zip |
Getting started on a port to OSX.
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(); - } }; |