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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 private: | 70 private: |
71 DEVPROPTYPE property_type_; | 71 DEVPROPTYPE property_type_; |
72 scoped_ptr<uint8_t[]> value_; | 72 scoped_ptr<uint8_t[]> value_; |
73 size_t value_size_; | 73 size_t value_size_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(DevicePropertyValue); | 75 DISALLOW_COPY_AND_ASSIGN(DevicePropertyValue); |
76 }; | 76 }; |
77 | 77 |
78 // Returns true only on Windows platforms supporting Bluetooth Low Energy. | 78 // Returns true only on Windows platforms supporting Bluetooth Low Energy. |
79 bool IsBluetoothLowEnergySupported(); | 79 bool DEVICE_BLUETOOTH_EXPORT IsBluetoothLowEnergySupported(); |
80 | 80 |
81 struct BluetoothLowEnergyServiceInfo { | 81 struct BluetoothLowEnergyServiceInfo { |
82 BluetoothLowEnergyServiceInfo(); | 82 BluetoothLowEnergyServiceInfo(); |
83 ~BluetoothLowEnergyServiceInfo(); | 83 ~BluetoothLowEnergyServiceInfo(); |
84 | 84 |
85 BTH_LE_UUID uuid; | 85 BTH_LE_UUID uuid; |
86 }; | 86 }; |
87 | 87 |
88 struct BluetoothLowEnergyDeviceInfo { | 88 struct BluetoothLowEnergyDeviceInfo { |
89 BluetoothLowEnergyDeviceInfo(); | 89 BluetoothLowEnergyDeviceInfo(); |
(...skipping 30 matching lines...) Expand all Loading... |
120 bool DEVICE_BLUETOOTH_EXPORT | 120 bool DEVICE_BLUETOOTH_EXPORT |
121 ExtractBluetoothAddressFromDeviceInstanceIdForTesting( | 121 ExtractBluetoothAddressFromDeviceInstanceIdForTesting( |
122 const std::string& instance_id, | 122 const std::string& instance_id, |
123 BLUETOOTH_ADDRESS* btha, | 123 BLUETOOTH_ADDRESS* btha, |
124 std::string* error); | 124 std::string* error); |
125 | 125 |
126 } // namespace win | 126 } // namespace win |
127 } // namespace device | 127 } // namespace device |
128 | 128 |
129 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ | 129 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
OLD | NEW |