From 5f77a85d552339dfa3216138cf8a20fbedc43944 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Fri, 28 Feb 2014 11:23:46 +0100 Subject: [PATCH] android/hal-gatt-api: Add Client Register event --- android/hal-ipc-api.txt | 5 +++++ android/hal-msg.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 1a19c8084..58c05a93c 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1797,6 +1797,11 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) In case of an error, the error response will be returned. Opcode 0x81 - Register Client notification + + Notification parameters: Status (4 octets) + Client Interface (4 octets) + UUID (16 octets) + Opcode 0x82 - Scan Result notification Opcode 0x83 - Connect Device notification Opcode 0x84 - Disconnect Device notification diff --git a/android/hal-msg.h b/android/hal-msg.h index 1e12868b2..0b5865806 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -1224,3 +1224,10 @@ struct hal_ev_avrcp_passthrough_cmd { uint8_t id; uint8_t state; } __attribute__((packed)); + +#define HAL_EV_GATT_CLIENT_REGISTER_CLIENT 0x81 +struct hal_ev_gatt_client_register_client { + int32_t status; + int32_t client_if; + uint8_t app_uuid[16]; +} __attribute__((packed)); -- 2.47.3