OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_MAC_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_MAC_H_ |
7 | 7 |
8 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" | 8 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Descriptor from CoreBluetooth. | 53 // Descriptor from CoreBluetooth. |
54 base::scoped_nsobject<CBDescriptor> cb_descriptor_; | 54 base::scoped_nsobject<CBDescriptor> cb_descriptor_; |
55 // Descriptor identifier. | 55 // Descriptor identifier. |
56 std::string identifier_; | 56 std::string identifier_; |
57 // Descriptor UUID. | 57 // Descriptor UUID. |
58 BluetoothUUID uuid_; | 58 BluetoothUUID uuid_; |
59 // Descriptor value. | 59 // Descriptor value. |
60 std::vector<uint8_t> value_; | 60 std::vector<uint8_t> value_; |
61 }; | 61 }; |
62 | 62 |
| 63 // Stream operator for logging. |
| 64 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( |
| 65 std::ostream& out, |
| 66 const BluetoothRemoteGattDescriptorMac& descriptor); |
| 67 |
63 } // namespace device | 68 } // namespace device |
64 | 69 |
65 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ | 70 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ |
OLD | NEW |