From 01491c143eeba30fda789a7a41aeb79bc478aa20 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 28 Feb 2014 12:19:57 +0100 Subject: [PATCH] android/hal-gatt-api: Add Server Descriptor Added Notification --- android/hal-ipc-api.txt | 7 +++++++ android/hal-msg.h | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 88bcc12b0..f7c9f7de0 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1991,6 +1991,13 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) Characteristic Handle (4 octets) Opcode 0x98 - Descriptor Added notification + + Notification parameters: Status (4 octets) + Server (4 octets) + UUID (6 octets) + Service Handle (4 octets) + Descriptor Handle (4 octets) + Opcode 0x99 - Service Started notification Opcode 0x9a - Service Stopped notification Opcode 0x9b - Service Deleted notification diff --git a/android/hal-msg.h b/android/hal-msg.h index d2743dd84..5bf970a32 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -1426,3 +1426,12 @@ struct hal_ev_gatt_server_characteristic_added { int32_t srvc_handle; int32_t char_handle; } __attribute__((packed)); + +#define HAL_EV_GATT_SERVER_DESCRIPTOR_ADDED 0x98 +struct hal_ev_gatt_server_descriptor_added { + int32_t status; + int32_t server_if; + uint8_t uuid[16]; + int32_t srvc_handle; + int32_t descr_handle; +} __attribute__((packed)); -- 2.47.3