Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1149)

Side by Side Diff: device/bluetooth/bluetooth_low_energy_win.h

Issue 1739383002: Implement read & write remote GATT characteristic value for Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698