| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // Reads included descriptors of |characteristic| in service with service | 156 // Reads included descriptors of |characteristic| in service with service |
| 157 // device path |service_path|. The result will be stored in | 157 // device path |service_path|. The result will be stored in |
| 158 // |*out_included_descriptors| and |*out_counts|. | 158 // |*out_included_descriptors| and |*out_counts|. |
| 159 virtual HRESULT ReadDescriptorsOfACharacteristic( | 159 virtual HRESULT ReadDescriptorsOfACharacteristic( |
| 160 base::FilePath& service_path, | 160 base::FilePath& service_path, |
| 161 const PBTH_LE_GATT_CHARACTERISTIC characteristic, | 161 const PBTH_LE_GATT_CHARACTERISTIC characteristic, |
| 162 scoped_ptr<BTH_LE_GATT_DESCRIPTOR>* out_included_descriptors, | 162 scoped_ptr<BTH_LE_GATT_DESCRIPTOR>* out_included_descriptors, |
| 163 USHORT* out_counts); | 163 USHORT* out_counts); |
| 164 | 164 |
| 165 // Reads |characteristic| value in service with service device path |
| 166 // |service_path|. The result will be stored in |*out_value|. |
| 167 virtual HRESULT ReadCharacteristicValue( |
| 168 base::FilePath& service_path, |
| 169 const PBTH_LE_GATT_CHARACTERISTIC characteristic, |
| 170 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE>* out_value); |
| 171 |
| 172 // Writes |characteristic| value in service with service device path |
| 173 // |service_path| to |*new_value|. |
| 174 virtual HRESULT WriteCharacteristicValue( |
| 175 base::FilePath& service_path, |
| 176 const PBTH_LE_GATT_CHARACTERISTIC characteristic, |
| 177 PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value); |
| 178 |
| 165 protected: | 179 protected: |
| 166 BluetoothLowEnergyWrapper(); | 180 BluetoothLowEnergyWrapper(); |
| 167 virtual ~BluetoothLowEnergyWrapper(); | 181 virtual ~BluetoothLowEnergyWrapper(); |
| 168 }; | 182 }; |
| 169 | 183 |
| 170 } // namespace win | 184 } // namespace win |
| 171 } // namespace device | 185 } // namespace device |
| 172 | 186 |
| 173 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ | 187 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
| OLD | NEW |