Chromium Code Reviews| Index: device/bluetooth/bluetooth_low_energy_win.h |
| diff --git a/device/bluetooth/bluetooth_low_energy_win.h b/device/bluetooth/bluetooth_low_energy_win.h |
| index cd7150d18418ec73e53fd89f17cc346eb4ba7028..869673a621ce2374a4abff7934237709500d0455 100644 |
| --- a/device/bluetooth/bluetooth_low_energy_win.h |
| +++ b/device/bluetooth/bluetooth_low_energy_win.h |
| @@ -176,6 +176,19 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyWrapper { |
| const PBTH_LE_GATT_CHARACTERISTIC characteristic, |
| PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value); |
| + // 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.
|
| + // path |service_path|. |event_parameter| is the event's parameter. |callback| |
| + // is the function to be invoked if the event happened. |context| is the input |
| + // parameter to be given back through |callback|. |*out_handle| stores the |
| + // unique handle in OS for this registration. |
| + virtual HRESULT RegisterGattEvents(base::FilePath& service_path, |
| + BTH_LE_GATT_EVENT_TYPE event_type, |
| + PVOID event_parameter, |
| + PFNBLUETOOTH_GATT_EVENT_CALLBACK callback, |
| + PVOID context, |
| + BLUETOOTH_GATT_EVENT_HANDLE* out_handle); |
| + virtual HRESULT UnregisterGattEvent(BLUETOOTH_GATT_EVENT_HANDLE event_handle); |
| + |
| protected: |
| BluetoothLowEnergyWrapper(); |
| virtual ~BluetoothLowEnergyWrapper(); |