summaryrefslogtreecommitdiff
path: root/android/hal.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2013-10-25 14:34:46 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-10-25 16:08:04 +0300
commit39bf745e92b79891c43b42de662fb41c42b3b30e (patch)
tree0dd39ae73080586242f797dabfef2f17fbc47e68 /android/hal.h
parentd52939fde909bae869bad70894dd4407e1337e5f (diff)
downloadbluez-39bf745e92b79891c43b42de662fb41c42b3b30e.tar.gz
android/hal: Associate thread to Java
Without thread assiciation callbacks are not received by Java. They are blocked by JNI: E/BluetoothServiceJni( 2844): Callback env check fail: env: 0x0, callback: 0x0 E/BluetoothServiceJni( 2844): Callback: 'adapter_state_change_callback' is not called on the correct thread
Diffstat (limited to 'android/hal.h')
-rw-r--r--android/hal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/hal.h b/android/hal.h
index ef9a10730..5cd5cabf7 100644
--- a/android/hal.h
+++ b/android/hal.h
@@ -27,3 +27,5 @@ btpan_interface_t *bt_get_pan_interface(void);
btav_interface_t *bt_get_av_interface(void);
void bt_notify_adapter(uint16_t opcode, void *buf, uint16_t len);
+void bt_thread_associate(void);
+void bt_thread_disassociate(void);