Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1154)

Unified Diff: device/bluetooth/bluetooth_gatt_characteristic.h

Issue 1765773002: bluetooth: Refactor GetDescriptorForUUID to GetDescriptorsForUUID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-notify-tommyt-
Patch Set: addressed ortuno's comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_gatt_characteristic.h
diff --git a/device/bluetooth/bluetooth_gatt_characteristic.h b/device/bluetooth/bluetooth_gatt_characteristic.h
index 2eeeeffd02832d68f6e8e0a6b25b96ffd40a3b45..c578d90435bf151cee8c01ffdd0d3094e2b97e06 100644
--- a/device/bluetooth/bluetooth_gatt_characteristic.h
+++ b/device/bluetooth/bluetooth_gatt_characteristic.h
@@ -158,8 +158,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristic {
virtual BluetoothGattDescriptor* GetDescriptor(
const std::string& identifier) const = 0;
- // Returns the GATT characteristic descriptor that matches |uuid|.
- virtual BluetoothGattDescriptor* GetDescriptorForUUID(
+ // Returns the GATT characteristic descriptors that match |uuid|. There may be
+ // multiple, as illustrated by Core Bluetooth Specification [V4.2 Vol 3 Part G
+ // 3.3.3.5 Characteristic Presentation Format].
+ std::vector<BluetoothGattDescriptor*> GetDescriptorsByUUID(
const BluetoothUUID& uuid);
// Adds a characteristic descriptor to the locally hosted characteristic

Powered by Google App Engine
This is Rietveld 408576698