summaryrefslogtreecommitdiff
path: root/android/hal-msg.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@gmail.com>2014-01-04 21:16:13 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-06 21:25:59 +0200
commit74c65573ce78a347015753fbc405fc84e915ac21 (patch)
tree7135d3c6e4f388f24d5729a517df941f15a77704 /android/hal-msg.h
parente99c1dbd3318517f62a569779bd990f89a60fae7 (diff)
downloadbluez-74c65573ce78a347015753fbc405fc84e915ac21.tar.gz
android/socket: Move logic from HAL to daemon in listen
This reduce logic in HAL to bare minimum e.g. no modifications in library will be needed to add different socket type support. Both bdaddr2str and btuuid2str handle NULL pointers so it is safe to print debug unconditionally.
Diffstat (limited to 'android/hal-msg.h')
-rw-r--r--android/hal-msg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/hal-msg.h b/android/hal-msg.h
index bbbb99cf9..ceaa3b280 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -231,6 +231,10 @@ struct hal_cmd_le_test_mode {
/* Bluetooth Socket HAL api */
+#define HAL_SOCK_RFCOMM 0x01
+#define HAL_SOCK_SCO 0x02
+#define HAL_SOCK_L2CAP 0x03
+
#define HAL_OP_SOCK_LISTEN 0x01
struct hal_cmd_sock_listen {
uint8_t type;