aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ble/Bluetooth.h14
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);
}