Bluetooth: AVDTP: Add AV-Stream data structure

AV-Stream Data structure added to AVDTP structure.

Change-Id: Icb6ae80e84b49e8a800c99e7f004b43a0fa6c043
Signed-off-by: Arun Jagadish <arun.jagadish@intel.com>
This commit is contained in:
Arun Jagadish 2016-12-06 11:21:07 +05:30 committed by Johan Hedberg
commit 7f6a059a36
2 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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*/