From 7e25356deec3369773e3949fe7336d84c10834c0 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Sep 2015 10:10:22 +0100 Subject: fish --- ble.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'ble.h') diff --git a/ble.h b/ble.h index 634191e..5073cd6 100644 --- a/ble.h +++ b/ble.h @@ -1,13 +1,22 @@ -struct ble { - bdaddr_t src_addr, dst_addr; - int sec; - uint8_t dst_type; +struct ble +{ + bdaddr_t src_addr, dst_addr; + int sec; + uint8_t dst_type; - int fd; + uint16_t mtu; - struct bt_att *att; - struct gatt_db *db; - struct bt_gatt_client *gatt; -}; + int fd; + + struct bt_att *att; + struct gatt_db *db; + struct bt_gatt_client *gatt; + unsigned notify_id; + + uint16_t cp_handle; + uint16_t cccd_handle; + uint16_t data_handle; +}; +typedef struct ble BLE; -- cgit v1.2.3