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_; |
}; |