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

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

Issue 2102093003: Implement BluetoothDeviceBlueZ::GetServiceRecords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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_service_record_bluez.h
diff --git a/device/bluetooth/bluez/bluetooth_service_record_bluez.h b/device/bluetooth/bluez/bluetooth_service_record_bluez.h
index c4a8630929ead7e65904eb1284ced55fb02ac198..b19618f816900a8ae73ee9f819f92f2eeba889b5 100644
--- a/device/bluetooth/bluez/bluetooth_service_record_bluez.h
+++ b/device/bluetooth/bluez/bluetooth_service_record_bluez.h
@@ -32,9 +32,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothServiceRecordBlueZ {
UNKNOWN
};
- explicit BluetoothServiceRecordBlueZ(
- const std::map<uint16_t, BluetoothServiceAttributeValueBlueZ>&
- attributes);
+ BluetoothServiceRecordBlueZ();
BluetoothServiceRecordBlueZ(const BluetoothServiceRecordBlueZ& record);
~BluetoothServiceRecordBlueZ();
@@ -44,6 +42,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothServiceRecordBlueZ {
const BluetoothServiceAttributeValueBlueZ& GetAttributeValue(
uint16_t attribute_id) const;
+ // Add an an entry to this service record. If a record with the given ID
+ // already exists, it is replaced.
+ void AddRecordEntry(uint16_t id,
+ const BluetoothServiceAttributeValueBlueZ& value);
+
private:
std::map<uint16_t, BluetoothServiceAttributeValueBlueZ> attributes_;
};

Powered by Google App Engine
This is Rietveld 408576698