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

Unified Diff: device/bluetooth/bluetooth_low_energy_win.h

Issue 1749403002: Implement BluetoothRemoteGattCharacteristicWin::StartNotifySession and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjust comments Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698