Diff between d8eed4517a16cb6c4d7115b65c5a37909d41211d and 0416bd086b743b74a2745dd4538a07184ee6ef2e

Changed Files

File Additions Deletions Status
android/bluetooth.h +3 -2 modified
android/gatt.c +1 -1 modified

Full Patch

diff --git a/android/bluetooth.h b/android/bluetooth.h
index a03305d..8dbc623 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 0dfb90e..f1dad9a 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)
 {