From ec71b193cb5b63058c74fea015b89c7f271bbe41 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Thu, 27 Feb 2014 14:28:44 +0100 Subject: [PATCH] android/hal-gatt-api: Add Server Included Service --- android/hal-ipc-api.txt | 8 ++++++++ android/hal-msg.h | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index a1ad71e45..ba1b40a48 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1711,6 +1711,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) In case of an error, the error response will be returned. Opcode 0x1c - Add Included Service command/response + + Command parameters: Server (4 octets) + Service handle (4 octets) + Included handle (4 octets) + Response parameters: + + In case of an error, the error response will be returned. + Opcode 0x1d - Add Characteristic command/response Opcode 0x1e - Add Descriptor command/response Opcode 0x1f - Start Service command/response diff --git a/android/hal-msg.h b/android/hal-msg.h index aacd392de..565976d59 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -733,6 +733,13 @@ struct hal_cmd_gatt_server_add_service { int32_t num_handles; } __attribute__((packed)); +#define HAL_OP_GATT_SERVER_ADD_INC_SERVICE 0x1c +struct hal_cmd_gatt_server_add_inc_service { + int32_t server_if; + int32_t service_handle; + int32_t included_handle; +} __attribute__((packed)); + /* Notifications and confirmations */ #define HAL_POWER_OFF 0x00 -- 2.47.3