OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "device/bluetooth/bluetooth_gatt_descriptor.h" | 5 #include "device/bluetooth/bluetooth_gatt_descriptor.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace device { | 9 namespace device { |
10 | 10 |
11 const BluetoothUUID BluetoothGattDescriptor:: | 11 using bluetooth_utils::UUID; |
12 kCharacteristicExtendedPropertiesUuid("2900"); | 12 |
13 const BluetoothUUID BluetoothGattDescriptor:: | 13 const UUID BluetoothGattDescriptor:: |
14 kCharacteristicUserDescriptionUuid("2901"); | 14 kCharacteristicExtendedPropertiesUuid("0x2900"); |
15 const BluetoothUUID BluetoothGattDescriptor:: | 15 const UUID BluetoothGattDescriptor:: |
16 kClientCharacteristicConfigurationUuid("2902"); | 16 kCharacteristicUserDescriptionUuid("0x2901"); |
17 const BluetoothUUID BluetoothGattDescriptor:: | 17 const UUID BluetoothGattDescriptor:: |
18 kServerCharacteristicConfigurationUuid("2903"); | 18 kClientCharacteristicConfigurationUuid("0x2902"); |
19 const BluetoothUUID BluetoothGattDescriptor:: | 19 const UUID BluetoothGattDescriptor:: |
20 kCharacteristicPresentationFormatUuid("2904"); | 20 kServerCharacteristicConfigurationUuid("0x2903"); |
21 const BluetoothUUID BluetoothGattDescriptor:: | 21 const UUID BluetoothGattDescriptor:: |
22 kCharacteristicAggregateFormatUuid("2905"); | 22 kCharacteristicPresentationFormatUuid("0x2904"); |
| 23 const UUID BluetoothGattDescriptor:: |
| 24 kCharacteristicAggregateFormatUuid("0x2905"); |
23 | 25 |
24 BluetoothGattDescriptor::BluetoothGattDescriptor() { | 26 BluetoothGattDescriptor::BluetoothGattDescriptor() { |
25 } | 27 } |
26 | 28 |
27 BluetoothGattDescriptor::~BluetoothGattDescriptor() { | 29 BluetoothGattDescriptor::~BluetoothGattDescriptor() { |
28 } | 30 } |
29 | 31 |
30 // static | 32 // static |
31 BluetoothGattDescriptor* BluetoothGattDescriptor::Create( | 33 BluetoothGattDescriptor* BluetoothGattDescriptor::Create( |
32 const BluetoothUUID& uuid, | 34 const bluetooth_utils::UUID& uuid, |
33 const std::vector<uint8>& value) { | 35 const std::vector<uint8>& value) { |
34 LOG(ERROR) << "Creating local GATT characteristic descriptors currently not " | 36 LOG(ERROR) << "Creating local GATT characteristic descriptors currently not " |
35 << "supported."; | 37 << "supported."; |
36 return NULL; | 38 return NULL; |
37 } | 39 } |
38 | 40 |
39 } // namespace device | 41 } // namespace device |
OLD | NEW |