From 7f6a059a361f3ae14029791963b0c0f97c91b988 Mon Sep 17 00:00:00 2001 From: Arun Jagadish Date: Tue, 6 Dec 2016 11:21:07 +0530 Subject: [PATCH] Bluetooth: AVDTP: Add AV-Stream data structure AV-Stream Data structure added to AVDTP structure. Change-Id: Icb6ae80e84b49e8a800c99e7f004b43a0fa6c043 Signed-off-by: Arun Jagadish --- include/bluetooth/avdtp.h | 9 +++++++++ subsys/bluetooth/host/avdtp_internal.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/bluetooth/avdtp.h b/include/bluetooth/avdtp.h index b750fb26899..3fb3560a6ab 100644 --- a/include/bluetooth/avdtp.h +++ b/include/bluetooth/avdtp.h @@ -48,6 +48,15 @@ struct bt_avdtp_seid_lsep { struct bt_avdtp_seid_lsep *next; }; +/** @brief AVDTP Stream */ +struct bt_avdtp_stream { + struct bt_l2cap_br_chan chan; /* Transport Channel*/ + struct bt_avdtp_seid_info lsep; /* Configured Local SEP */ + struct bt_avdtp_seid_info rsep; /* Configured Remote SEP*/ + uint8_t state; /* current state of the stream */ + struct bt_avdtp_stream *next; +}; + #ifdef __cplusplus } #endif diff --git a/subsys/bluetooth/host/avdtp_internal.h b/subsys/bluetooth/host/avdtp_internal.h index 864dda366ec..0c8883a7cf0 100644 --- a/subsys/bluetooth/host/avdtp_internal.h +++ b/subsys/bluetooth/host/avdtp_internal.h @@ -147,7 +147,7 @@ struct bt_avdtp_event_cb { /** @brief Global AVDTP session structure. */ struct bt_avdtp { struct bt_l2cap_br_chan br_chan; - uint8_t state; /* current state of AVDTP*/ + struct bt_avdtp_stream *streams; /* List of AV streams */ }; /* Initialize AVDTP layer*/