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 <stddef.h> | 7 #include <stddef.h> |
8 | |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | |
13 #include "base/macros.h" | |
14 | 11 |
15 namespace device { | 12 namespace device { |
16 namespace { | 13 namespace { |
17 | 14 |
18 struct UUIDs { | 15 struct UUIDs { |
19 UUIDs() : uuids_(MakeUUIDVector()) {} | 16 UUIDs() : uuids_(MakeUUIDVector()) {} |
20 | 17 |
21 const std::vector<BluetoothUUID> uuids_; | 18 const std::vector<BluetoothUUID> uuids_; |
22 | 19 |
23 private: | 20 private: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 BluetoothGattDescriptor::CharacteristicAggregateFormatUuid() { | 70 BluetoothGattDescriptor::CharacteristicAggregateFormatUuid() { |
74 return g_uuids.Get().uuids_[5]; | 71 return g_uuids.Get().uuids_[5]; |
75 } | 72 } |
76 | 73 |
77 BluetoothGattDescriptor::BluetoothGattDescriptor() { | 74 BluetoothGattDescriptor::BluetoothGattDescriptor() { |
78 } | 75 } |
79 | 76 |
80 BluetoothGattDescriptor::~BluetoothGattDescriptor() { | 77 BluetoothGattDescriptor::~BluetoothGattDescriptor() { |
81 } | 78 } |
82 | 79 |
83 // static | |
84 BluetoothGattDescriptor* BluetoothGattDescriptor::Create( | |
85 const BluetoothUUID& uuid, | |
86 const std::vector<uint8_t>& value, | |
87 BluetoothGattCharacteristic::Permissions permissions) { | |
88 LOG(ERROR) << "Creating local GATT characteristic descriptors currently not " | |
89 << "supported."; | |
90 return NULL; | |
91 } | |
92 | |
93 } // namespace device | 80 } // namespace device |
OLD | NEW |