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 /include | |
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 'include')
-rw-r--r-- | include/ble/Bluetooth.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/include/ble/Bluetooth.h b/include/ble/Bluetooth.h index 6a974d5..b035223 100644 --- a/include/ble/Bluetooth.h +++ b/include/ble/Bluetooth.h @@ -3,6 +3,7 @@ #include <string> #include <stdexcept> +#include <vector> #include <boost/uuid/uuid.hpp> #include <boost/optional.hpp> @@ -167,21 +168,20 @@ public: virtual BluetoothDevice &getDevice(Mac &mac) = 0; + virtual string getName() = 0; + protected: BluetoothAdapter(); virtual ~BluetoothAdapter(); }; -/** -* Right this is only RAII support to properly call shutdown(). -* -* TODO: move getAdapter() here. Make this control all shutdowns. -*/ class BluetoothSystem { public: BluetoothSystem(); + shared_ptr<BluetoothAdapter> getAdapter(string adapter_name); + ~BluetoothSystem(); }; @@ -245,10 +245,6 @@ private: AttributeData(uint16_t handle, ByteBuffer value); }; -shared_ptr<BluetoothAdapter> getAdapter(int hciDevice); - -void shutdown(); - boost::uuids::uuid makeUuid(const boost::uuids::uuid base, uint8_t a, uint8_t b); } |