diff options
author | Lukasz Rymanowski <lukasz.rymanowski@tieto.com> | 2014-12-18 12:47:56 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-12-18 18:10:21 +0100 |
commit | 49e25b927e3317ab17bcf867b2eca55a6ddc428a (patch) | |
tree | cf8f57657130bf472814ff5c57aa2217ee2c841e /android/bluetooth.h | |
parent | a34cba5926241e9e59e1ecd17c139c211573fe11 (diff) | |
download | bluez-49e25b927e3317ab17bcf867b2eca55a6ddc428a.tar.gz |
android/gatt: Add connectable flag to device found callback
GATT is interested in advertising event type i.e if it is connectable
or not. It is because GATT does not want to trigger connection to
devices doing non-connectable advertising. This patch add such support.
Diffstat (limited to 'android/bluetooth.h')
-rw-r--r-- | android/bluetooth.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/bluetooth.h b/android/bluetooth.h index 4b7a70d03..d09b6f219 100644 --- a/android/bluetooth.h +++ b/android/bluetooth.h @@ -42,7 +42,8 @@ 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 bonded); + const void *eir, bool connectable, + bool bonded); bool bt_le_register(bt_le_device_found cb); void bt_le_unregister(void); |