From 0fc4116e22a4ecaf1c24c4ff078c8a1d8c08f4c5 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 22 Sep 2014 16:30:11 +0200 Subject: [PATCH] android/hal-msg: Add configuration command --- android/hal-msg.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/android/hal-msg.h b/android/hal-msg.h index ba213b788..1ab3d580f 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -70,6 +70,22 @@ struct hal_cmd_unregister_module { uint8_t service_id; } __attribute__((packed)); +#define HAL_CONFIG_VENDOR 0x00 +#define HAL_CONFIG_MODEL 0x01 +#define HAL_CONFIG_NAME 0x02 + +struct hal_config_prop { + uint8_t type; + uint16_t len; + uint8_t val[0]; +} __attribute__((packed)); + +#define HAL_OP_CONFIGURATION 0x03 +struct hal_cmd_configuration { + uint8_t num; + struct hal_config_prop props[0]; +} __attribute__((packed)); + /* Bluetooth Core HAL API */ #define HAL_OP_ENABLE 0x01 -- 2.47.3