summaryrefslogtreecommitdiff
path: root/android/hal-msg.h
diff options
context:
space:
mode:
authorMarcin Kraglak <marcin.kraglak@tieto.com>2014-11-21 12:16:38 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-11-24 15:08:41 +0100
commit64f08bc02b12a402871d9f2c0e69829adfcba1be (patch)
tree704cc090fbd89390fe2faeb54056bfa017f5ac83 /android/hal-msg.h
parente9b99f6a20e2b6af67ff6684c3562f9534c41fcf (diff)
downloadbluez-64f08bc02b12a402871d9f2c0e69829adfcba1be.tar.gz
android/hal-bluetooth: Implement get_connection_state
Diffstat (limited to 'android/hal-msg.h')
-rw-r--r--android/hal-msg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/android/hal-msg.h b/android/hal-msg.h
index ca512d44d..6a5a81c7a 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -252,6 +252,15 @@ struct hal_cmd_le_test_mode {
uint8_t data[0];
} __attribute__((packed));
+#define HAL_OP_GET_CONNECTION_STATE 0x15
+struct hal_cmd_get_connection_state {
+ uint8_t bdaddr[6];
+} __attribute__((packed));
+
+struct hal_rsp_get_connection_state {
+ int32_t connection_state;
+} __attribute__((packed));
+
/* Bluetooth Socket HAL api */
#define HAL_SOCK_RFCOMM 0x01