Chromium Code Reviews| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 const PBTH_LE_GATT_CHARACTERISTIC characteristic, | 169 const PBTH_LE_GATT_CHARACTERISTIC characteristic, |
| 170 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE>* out_value); | 170 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE>* out_value); |
| 171 | 171 |
| 172 // Writes |characteristic| value in service with service device path | 172 // Writes |characteristic| value in service with service device path |
| 173 // |service_path| to |*new_value|. | 173 // |service_path| to |*new_value|. |
| 174 virtual HRESULT WriteCharacteristicValue( | 174 virtual HRESULT WriteCharacteristicValue( |
| 175 base::FilePath& service_path, | 175 base::FilePath& service_path, |
| 176 const PBTH_LE_GATT_CHARACTERISTIC characteristic, | 176 const PBTH_LE_GATT_CHARACTERISTIC characteristic, |
| 177 PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value); | 177 PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value); |
| 178 | 178 |
| 179 // Register |event_type| of GATT events of the service with service device | |
|
ortuno
2016/03/07 18:48:45
Register for GATT events of |event_type|...
gogerald1
2016/03/07 22:52:49
Done.
| |
| 180 // path |service_path|. |event_parameter| is the event's parameter. |callback| | |
| 181 // is the function to be invoked if the event happened. |context| is the input | |
| 182 // parameter to be given back through |callback|. |*out_handle| stores the | |
| 183 // unique handle in OS for this registration. | |
| 184 virtual HRESULT RegisterGattEvents(base::FilePath& service_path, | |
| 185 BTH_LE_GATT_EVENT_TYPE event_type, | |
| 186 PVOID event_parameter, | |
| 187 PFNBLUETOOTH_GATT_EVENT_CALLBACK callback, | |
| 188 PVOID context, | |
| 189 BLUETOOTH_GATT_EVENT_HANDLE* out_handle); | |
| 190 virtual HRESULT UnregisterGattEvent(BLUETOOTH_GATT_EVENT_HANDLE event_handle); | |
| 191 | |
| 179 protected: | 192 protected: |
| 180 BluetoothLowEnergyWrapper(); | 193 BluetoothLowEnergyWrapper(); |
| 181 virtual ~BluetoothLowEnergyWrapper(); | 194 virtual ~BluetoothLowEnergyWrapper(); |
| 182 }; | 195 }; |
| 183 | 196 |
| 184 } // namespace win | 197 } // namespace win |
| 185 } // namespace device | 198 } // namespace device |
| 186 | 199 |
| 187 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ | 200 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ |
| OLD | NEW |