summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_adapter_bluez.cc
diff options
context:
space:
mode:
Diffstat (limited to 'device/bluetooth/bluetooth_adapter_bluez.cc')
-rw-r--r--device/bluetooth/bluetooth_adapter_bluez.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_adapter_bluez.cc b/device/bluetooth/bluetooth_adapter_bluez.cc
index 4424b02..91345fc 100644
--- a/device/bluetooth/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluetooth_adapter_bluez.cc
@@ -328,6 +328,18 @@ bool BluetoothAdapterBlueZ::IsDiscovering() const {
return properties->discovering.value();
}
+BluetoothAdapterBlueZ::UUIDList BluetoothAdapterBlueZ::GetUUIDs() const {
+ bluez::BluetoothAdapterClient::Properties* properties =
+ bluez::BluezDBusManager::Get()
+ ->GetBluetoothAdapterClient()
+ ->GetProperties(object_path_);
+ DCHECK(properties);
+
+ std::vector<std::string> uuids = properties->uuids.value();
+
+ return UUIDList(uuids.begin(), uuids.end());
+}
+
void BluetoothAdapterBlueZ::CreateRfcommService(
const BluetoothUUID& uuid,
const ServiceOptions& options,