From 0416bd086b743b74a2745dd4538a07184ee6ef2e Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Sat, 22 Mar 2014 18:26:45 +0100 Subject: [PATCH] android/bluetooth: Constify bdaddr parameter in bt_le_device_found --- android/bluetooth.h | 5 +++-- android/gatt.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/android/bluetooth.h b/android/bluetooth.h index a03305da3..8dbc623a0 100644 --- a/android/bluetooth.h +++ b/android/bluetooth.h @@ -35,8 +35,9 @@ void bt_bluetooth_unregister(void); int bt_adapter_add_record(sdp_record_t *rec, uint8_t svc_hint); void bt_adapter_remove_record(uint32_t handle); -typedef void (*bt_le_device_found)(bdaddr_t *addr, uint8_t addr_type, int rssi, - uint16_t eir_len, const void *eir); +typedef void (*bt_le_device_found)(const bdaddr_t *addr, uint8_t addr_type, + int rssi, uint16_t eir_len, + const void *eir); bool bt_le_discovery_start(bt_le_device_found cb); typedef void (*bt_le_discovery_stopped)(void); diff --git a/android/gatt.c b/android/gatt.c index 0dfb90ed7..f1dad9a54 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -342,7 +342,7 @@ static bool is_device_wating_for_connect(const bdaddr_t *addr, return true; } -static void le_device_found_handler(bdaddr_t *addr, uint8_t addr_type, +static void le_device_found_handler(const bdaddr_t *addr, uint8_t addr_type, int rssi, uint16_t eir_len, const void *eir) { -- 2.47.3