From 85532964ffd2f011e088dd25f74add1de155551a Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 28 Feb 2014 12:19:55 +0100 Subject: [PATCH] android/hal-gatt-api: Add Server Included Service Added Notification --- android/hal-ipc-api.txt | 6 ++++++ android/hal-msg.h | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index eb879cef5..454694d98 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1976,6 +1976,12 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) Instance ID (1 octet) Opcode 0x96 - Included Service Added notification + + Notification patemeters: Status (4 octets) + Server (4 octets) + Service Handle (4 octets) + Included Service Handle (4 octets) + Opcode 0x97 - Characteristic Added notification Opcode 0x98 - Descriptor Added notification Opcode 0x99 - Service Started notification diff --git a/android/hal-msg.h b/android/hal-msg.h index e3c2e4585..1359af6f3 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -1409,3 +1409,11 @@ struct hal_ev_gatt_server_service_added { struct hal_gatt_srvc_id srvc_id; int32_t srvc_handle; } __attribute__((packed)); + +#define HAL_EV_GATT_SERVER_INC_SRVC_ADDED 0x96 +struct hal_ev_gatt_server_inc_srvc_added { + int32_t status; + int32_t server_if; + int32_t srvc_handle; + int32_t incl_srvc_handle; +} __attribute__((packed)); -- 2.47.3