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

Unified Diff: device/bluetooth/bluetooth_low_energy_win_fake.h

Issue 2317773002: Fix bluetooth callback function declaration (Closed)
Patch Set: Add comment to explain and justify cast 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
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(

Powered by Google App Engine
This is Rietveld 408576698