From 6c5e96bbe7e58b37540914eee0fe3ce8188428b6 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 28 Feb 2014 12:19:56 +0100 Subject: [PATCH] android/hal-gatt-api: Add Server Characteristic 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 454694d98..88bcc12b0 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1983,6 +1983,13 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) Included Service Handle (4 octets) Opcode 0x97 - Characteristic Added notification + + Notification parameters: Status (4 octets) + Server (4 octets) + UUID (16 octets) + Service Handle (4 octets) + Characteristic Handle (4 octets) + Opcode 0x98 - Descriptor Added notification Opcode 0x99 - Service Started notification Opcode 0x9a - Service Stopped notification diff --git a/android/hal-msg.h b/android/hal-msg.h index 1359af6f3..d2743dd84 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -1417,3 +1417,12 @@ struct hal_ev_gatt_server_inc_srvc_added { int32_t srvc_handle; int32_t incl_srvc_handle; } __attribute__((packed)); + +#define HAL_EV_GATT_SERVER_CHAR_ADDED 0x97 +struct hal_ev_gatt_server_characteristic_added { + int32_t status; + int32_t server_if; + uint8_t uuid[16]; + int32_t srvc_handle; + int32_t char_handle; +} __attribute__((packed)); -- 2.47.3