summaryrefslogtreecommitdiff
path: root/android/hal-msg.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-12-08 17:47:07 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-12-10 14:31:55 +0100
commitaae8b515c5b769a99bfabad01b922f33399a761a (patch)
tree23c623f4cf4070df99114de96f43646a86e2252d /android/hal-msg.h
parent5fb15cc547dd89e6cb1244e69004105a4c1c820c (diff)
downloadbluez-aae8b515c5b769a99bfabad01b922f33399a761a.tar.gz
android/socket: Add support for dynamic MAP record
Android 5.0 uses service name (sic!) for defining instance ID and supported message types. Name passed is in format of "XXYYname" where XX is hex coded instance and YY is hex coded message types mask. This patch adds new mode for Socket HAL in which daemon tries to extract instance ID and message types from service name.
Diffstat (limited to 'android/hal-msg.h')
-rw-r--r--android/hal-msg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 9d38a9f13..88b0c52c1 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -267,6 +267,9 @@ struct hal_rsp_get_connection_state {
/* Bluetooth Socket HAL api */
+#define HAL_MODE_SOCKET_DEFAULT HAL_MODE_DEFAULT
+#define HAL_MODE_SOCKET_DYNAMIC_MAP 0x01
+
#define HAL_SOCK_RFCOMM 0x01
#define HAL_SOCK_SCO 0x02
#define HAL_SOCK_L2CAP 0x03