aboutsummaryrefslogtreecommitdiff
path: root/ble/Bluetooth.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-02-20 23:35:31 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-02-20 23:35:31 +0100
commit9c095ce3c2165ae9fb976b007ba5c14602d06a0b (patch)
treeeff8f921df89d24a46e63c137dbdf5c5888644a6 /ble/Bluetooth.cpp
parente44813dddbf5ba063d29ae1e40862e7a7cbb6f43 (diff)
downloadble-toys-9c095ce3c2165ae9fb976b007ba5c14602d06a0b.tar.gz
ble-toys-9c095ce3c2165ae9fb976b007ba5c14602d06a0b.tar.bz2
ble-toys-9c095ce3c2165ae9fb976b007ba5c14602d06a0b.tar.xz
ble-toys-9c095ce3c2165ae9fb976b007ba5c14602d06a0b.zip
wip
Diffstat (limited to 'ble/Bluetooth.cpp')
-rw-r--r--ble/Bluetooth.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/ble/Bluetooth.cpp b/ble/Bluetooth.cpp
index b135282..4ceb3b6 100644
--- a/ble/Bluetooth.cpp
+++ b/ble/Bluetooth.cpp
@@ -165,6 +165,13 @@ BluetoothAdapter::BluetoothAdapter() {
BluetoothAdapter::~BluetoothAdapter() {
}
+BluetoothSystem::BluetoothSystem() {
+}
+
+BluetoothSystem::~BluetoothSystem() {
+ shutdown();
+}
+
/*
map<int, LinuxBluetoothAdapter *> adapters;
@@ -189,5 +196,12 @@ void shutdown() {
shutdownImpl();
}
+uuid_t makeUuid(const uuid_t base, uint8_t a, uint8_t b) {
+ uuid_t copy = base;
+ copy.data[2] = a;
+ copy.data[3] = b;
+ return copy;
+}
+
}
};