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

Unified Diff: device/bluetooth/bluetooth_low_energy_win_fake.h

Issue 2317773002: Fix bluetooth callback function declaration (Closed)
Patch Set: Updating typedef comment per code-review feedback Created 4 years, 3 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
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_low_energy_win_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_win_fake.h
diff --git a/device/bluetooth/bluetooth_low_energy_win_fake.h b/device/bluetooth/bluetooth_low_energy_win_fake.h
index ad13f27b940170e0afe1c0b1a0c04660e9178719..c08964748c257de67aac42eeaf608f8bbe371933 100644
--- a/device/bluetooth/bluetooth_low_energy_win_fake.h
+++ b/device/bluetooth/bluetooth_low_energy_win_fake.h
@@ -79,7 +79,7 @@ struct GattDescriptor {
struct GattCharacteristicObserver {
GattCharacteristicObserver();
~GattCharacteristicObserver();
- PFNBLUETOOTH_GATT_EVENT_CALLBACK callback;
+ PFNBLUETOOTH_GATT_EVENT_CALLBACK_CORRECTED callback;
PVOID context;
};
@@ -131,12 +131,13 @@ class BluetoothLowEnergyWrapperFake : public BluetoothLowEnergyWrapper {
base::FilePath& service_path,
const PBTH_LE_GATT_CHARACTERISTIC characteristic,
PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value) override;
- HRESULT RegisterGattEvents(base::FilePath& service_path,
- BTH_LE_GATT_EVENT_TYPE type,
- PVOID event_parameter,
- PFNBLUETOOTH_GATT_EVENT_CALLBACK callback,
- PVOID context,
- BLUETOOTH_GATT_EVENT_HANDLE* out_handle) override;
+ HRESULT RegisterGattEvents(
+ base::FilePath& service_path,
+ BTH_LE_GATT_EVENT_TYPE type,
+ PVOID event_parameter,
+ PFNBLUETOOTH_GATT_EVENT_CALLBACK_CORRECTED callback,
+ PVOID context,
+ BLUETOOTH_GATT_EVENT_HANDLE* out_handle) override;
HRESULT UnregisterGattEvent(
BLUETOOTH_GATT_EVENT_HANDLE event_handle) override;
HRESULT WriteDescriptorValue(
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_low_energy_win_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698