From 9042b87f32bcabcc671e393376d3fb96ad858caa Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 21 Jun 2015 16:58:18 +0200 Subject: ble-scan: o New tool to scan for devices. Requires root on linux :( Linux is also touchy if the program dies. BluetoothAdapter: o Adding getMac(). --- ble/Bluetooth.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'ble/Bluetooth.cpp') diff --git a/ble/Bluetooth.cpp b/ble/Bluetooth.cpp index b672dba..14a8cda 100644 --- a/ble/Bluetooth.cpp +++ b/ble/Bluetooth.cpp @@ -208,23 +208,7 @@ BluetoothSystem::~BluetoothSystem() { shutdown(); } -/* -map adapters; - -BluetoothAdapter &getAdapter(int hciDevice) { - map::iterator it = adapters.find(hciDevice); - - if (it == adapters.end()) { - LinuxBluetoothAdapter *adapter = new LinuxBluetoothAdapter(hciDevice); - adapters[hciDevice] = adapter; - return *adapter; - } - - return *it->second; -} -*/ - -BluetoothAdapter &getAdapter(int hciDevice) { +shared_ptr getAdapter(int hciDevice) { return getAdapterImpl(hciDevice); } -- cgit v1.2.3