diff options
author | Gaurav Asati <gasati@codeaurora.org> | 2013-10-09 14:09:21 +0530 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2013-11-07 22:32:45 -0800 |
commit | 7f0e0cafc12e2ebead38917ef472ea2d77d50096 (patch) | |
tree | 65d2e0cf525ff1ddf5a3d2a4c4d1660c4cb964f6 | |
parent | d8b4ff719e01676914673f4ef8171dc28ffa8084 (diff) | |
download | android_hardware_libhardware-cm-10.2.tar.gz android_hardware_libhardware-cm-10.2.tar.bz2 android_hardware_libhardware-cm-10.2.zip |
Bluetooth: Check A2dp device priority.cm-10.2.1cm-10.2.0stable/cm-10.2cm-10.2
For incoming connections stack does not check priority
of device.Add support to check priority of device in stack
for incoming connection.
Change-Id: Icc78d22048800bd448a93f96ab31e2673ce28dca
CRs-Fixed: 510957
-rw-r--r-- | include/hardware/bt_av.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hardware/bt_av.h b/include/hardware/bt_av.h index 2ec00c32..77202aa0 100644 --- a/include/hardware/bt_av.h +++ b/include/hardware/bt_av.h @@ -47,12 +47,18 @@ typedef void (* btav_connection_state_callback)(btav_connection_state_t state, typedef void (* btav_audio_state_callback)(btav_audio_state_t state, bt_bdaddr_t *bd_addr); +/** Callback for connection priority of device for incoming connection + * btav_connection_priority_t + */ +typedef void (* btav_connection_priority_callback)(bt_bdaddr_t *bd_addr); + /** BT-AV callback structure. */ typedef struct { /** set to sizeof(btav_callbacks_t) */ size_t size; btav_connection_state_callback connection_state_cb; btav_audio_state_callback audio_state_cb; + btav_connection_priority_callback connection_priority_cb; } btav_callbacks_t; /** @@ -83,6 +89,9 @@ typedef struct { /** Closes the interface. */ void (*cleanup)( void ); + + /** Send priority of device to stack*/ + void (*allowConnection)( int is_valid ); } btav_interface_t; __END_DECLS |