OSDN Git Service

android/bluetooth: Constify bdaddr parameter in bt_le_device_found
authorSzymon Janc <szymon.janc@tieto.com>
Sat, 22 Mar 2014 17:26:45 +0000 (18:26 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Sat, 22 Mar 2014 17:42:08 +0000 (18:42 +0100)
android/bluetooth.h
android/gatt.c

index a03305d..8dbc623 100644 (file)
@@ -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);
index 0dfb90e..f1dad9a 100644 (file)
@@ -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)
 {