summaryrefslogtreecommitdiff
path: root/android/hal-msg.h
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2014-02-28 11:23:57 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-03-02 22:18:56 +0100
commit9eb57885c13d26428c825d4924170d6bacf88f70 (patch)
tree22e3993209f77f791bcf97cfc5bdf14e2a925416 /android/hal-msg.h
parentec374548a4089e4524ebaede5952e79d06730892 (diff)
downloadbluez-9eb57885c13d26428c825d4924170d6bacf88f70.tar.gz
android/hal-gatt-api: Add Client Read Characteristic event
Diffstat (limited to 'android/hal-msg.h')
-rw-r--r--android/hal-msg.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 522596bc9..ff2867963 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -1317,3 +1317,24 @@ struct hal_ev_gatt_client_notify {
int32_t conn_id;
struct hal_gatt_notify_params data;
} __attribute__((packed));
+
+#define HAL_EV_GATT_CLIENT_READ_CHARACTERISTIC 0x8c
+struct hal_gatt_unformated_value {
+ uint16_t len;
+ uint8_t value[0];
+} __attribute__((packed));
+
+struct hal_gatt_read_params {
+ struct hal_gatt_srvc_id srvc_id;
+ struct hal_gatt_gatt_id char_id;
+ struct hal_gatt_gatt_id descr_id;
+ uint8_t status;
+ uint16_t value_type;
+ struct hal_gatt_unformated_value value;
+} __attribute__((packed));
+
+struct hal_ev_gatt_client_read_characteristic {
+ int32_t conn_id;
+ int32_t status;
+ struct hal_gatt_read_params data;
+} __attribute__((packed));