summaryrefslogtreecommitdiff
path: root/android/hal-msg.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-11-17 13:31:56 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-11-19 12:44:34 +0100
commit249c6dc80aa7609a7da460ee83f91274e4deedad (patch)
tree5591bf08c7bee33d1970edb8558636e43657345b /android/hal-msg.h
parent96b1c847dd402205eb1a0b3dd135d1ca82f6f97d (diff)
downloadbluez-249c6dc80aa7609a7da460ee83f91274e4deedad.tar.gz
android/hal-gatt: Implement client scan_filter_add_remove
This adds required IPC message, HAL implementation and daemon stub handler
Diffstat (limited to 'android/hal-msg.h')
-rw-r--r--android/hal-msg.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/android/hal-msg.h b/android/hal-msg.h
index c74c76bf0..90efc7791 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1044,6 +1044,23 @@ struct hal_cmd_gatt_client_scan_filter_setup {
int32_t found_timeout_cnt;
} __attribute__((packed));
+#define HAL_OP_GATT_CLIENT_SCAN_FILTER_ADD_REMOVE 0x025
+struct hal_cmd_gatt_client_scan_filter_add_remove {
+ int32_t client_if;
+ int32_t action;
+ int32_t filter_type;
+ int32_t filter_index;
+ int32_t company_id;
+ int32_t company_id_mask;
+ uint8_t uuid[16];
+ uint8_t uuid_mask[16];
+ uint8_t address[6];
+ uint8_t address_type;
+ int32_t data_len;
+ int32_t mask_len;
+ uint8_t data_mask[0]; /* common buffer for data and mask */
+} __attribute__((packed));
+
/* Handsfree client HAL API */
#define HAL_OP_HF_CLIENT_CONNECT 0x01