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 GATT events of |event_type| in the service with service device | |
| 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. | |
|
ortuno
2016/03/15 02:55:31
Could you add here that this function will write t
gogerald1
2016/03/15 18:28:22
May not good since I do not see Windows implementa
gogerald1
2016/03/17 14:07:56
Add similar comments in bluetooth_remote_gatt_char
ortuno
2016/03/21 17:00:52
I thought you said you tested it and it does write
gogerald1
2016/03/21 22:09:16
No, I said I tested the functionality of these int
ortuno
2016/03/22 15:02:24
Maybe a little context will make it clear why we n
gogerald1
2016/03/29 15:12:00
Done. From HCI log, Windows does not write CCCD im
| |
| 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 |