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

Unified Diff: device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 years, 8 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/bluez/bluetooth_local_gatt_service_bluez.h
diff --git a/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h b/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h
index 059fc53647672dd6e87f67184379b7856c41fa7a..8b786845ec9003c3582a48560ef98bcb997c1bd6 100644
--- a/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h
+++ b/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h
@@ -58,8 +58,11 @@ class BluetoothLocalGattServiceBlueZ
const ErrorCallback& error_callback) override;
void Unregister(const base::Closure& callback,
const ErrorCallback& error_callback) override;
+ device::BluetoothLocalGattCharacteristic* GetCharacteristic(
+ const std::string& identifier) override;
- const std::vector<std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>&
+ const std::map<dbus::ObjectPath,
+ std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>&
GetCharacteristics() const;
Delegate* GetDelegate() { return delegate_; }
@@ -91,7 +94,8 @@ class BluetoothLocalGattServiceBlueZ
device::BluetoothLocalGattService::Delegate* delegate_;
// Characteristics contained by this service.
- std::vector<std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>
+ std::map<dbus::ObjectPath,
+ std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>
characteristics_;
// Note: This should remain the last member so it'll be destroyed and
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698