Index: device/bluetooth/bluetooth_gatt_characteristic.cc |
diff --git a/device/bluetooth/bluetooth_gatt_characteristic.cc b/device/bluetooth/bluetooth_gatt_characteristic.cc |
index 66c39f68ebaf1987c54b1b8ba6e7d940db997683..d4b3427bab26f767674a40d32e994eb4d83cc4a0 100644 |
--- a/device/bluetooth/bluetooth_gatt_characteristic.cc |
+++ b/device/bluetooth/bluetooth_gatt_characteristic.cc |
@@ -25,14 +25,15 @@ BluetoothGattCharacteristic* BluetoothGattCharacteristic::Create( |
return NULL; |
} |
-BluetoothGattDescriptor* BluetoothGattCharacteristic::GetDescriptorForUUID( |
- const BluetoothUUID& uuid) { |
+std::vector<BluetoothGattDescriptor*> |
+BluetoothGattCharacteristic::GetDescriptorsByUUID(const BluetoothUUID& uuid) { |
+ std::vector<BluetoothGattDescriptor*> descriptors; |
for (BluetoothGattDescriptor* descriptor : GetDescriptors()) { |
if (descriptor->GetUUID() == uuid) { |
- return descriptor; |
+ descriptors.push_back(descriptor); |
} |
} |
- return NULL; |
+ return descriptors; |
} |
} // namespace device |