From 441cd0b11186d66493798551e1102eb246f1af9f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 30 Jun 2015 14:37:06 +0200 Subject: Getting started on a port to OSX. --- include/ble/Bluetooth.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'include') 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 #include +#include #include #include @@ -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 getAdapter(string adapter_name); + ~BluetoothSystem(); }; @@ -245,10 +245,6 @@ private: AttributeData(uint16_t handle, ByteBuffer value); }; -shared_ptr getAdapter(int hciDevice); - -void shutdown(); - boost::uuids::uuid makeUuid(const boost::uuids::uuid base, uint8_t a, uint8_t b); } -- cgit v1.2.3