summaryrefslogtreecommitdiff
path: root/android/bluetooth.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2015-03-05 12:43:03 +0100
committerSzymon Janc <szymon.janc@tieto.com>2015-03-05 16:58:49 +0100
commitfb865d80db38bdb9ac044c863ca8695c5be86bad (patch)
tree7739d183209b055bbfe030835a186a5ebe2cbd0a /android/bluetooth.h
parent0f40779ee29133a35f9d9f420bd1cdda426787f6 (diff)
downloadbluez-fb865d80db38bdb9ac044c863ca8695c5be86bad.tar.gz
android/bluetooth: Remove address type from BT callbacks
GATT code should always use bt_get_id_addr() when directly dealing with remote address. This is to make sure that proper address and type is used.
Diffstat (limited to 'android/bluetooth.h')
-rw-r--r--android/bluetooth.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/android/bluetooth.h b/android/bluetooth.h
index 8b8a1f0b5..4b1720937 100644
--- a/android/bluetooth.h
+++ b/android/bluetooth.h
@@ -35,10 +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)(const bdaddr_t *addr, uint8_t addr_type,
- int rssi, uint16_t eir_len,
- const void *eir, bool connectable,
- bool bonded);
+typedef void (*bt_le_device_found)(const bdaddr_t *addr, int rssi,
+ uint16_t eir_len, const void *eir,
+ bool connectable, bool bonded);
bool bt_le_register(bt_le_device_found cb);
void bt_le_unregister(void);
@@ -81,11 +80,11 @@ bool bt_auto_connect_add(const bdaddr_t *addr);
void bt_auto_connect_remove(const bdaddr_t *addr);
-typedef void (*bt_unpaired_device_cb)(const bdaddr_t *addr, uint8_t type);
+typedef void (*bt_unpaired_device_cb)(const bdaddr_t *addr);
bool bt_unpaired_register(bt_unpaired_device_cb cb);
void bt_unpaired_unregister(bt_unpaired_device_cb cb);
-typedef void (*bt_paired_device_cb)(const bdaddr_t *addr, uint8_t type);
+typedef void (*bt_paired_device_cb)(const bdaddr_t *addr);
bool bt_paired_register(bt_paired_device_cb cb);
void bt_paired_unregister(bt_paired_device_cb cb);
bool bt_is_pairing(const bdaddr_t *addr);