Bluetooth: AVDTP: Add AVDTP Pending Request

Added a Pending Request structure, this will keep
a track of the last sent AVDTP Singnalling Message.
This will be used to verify the response from the remote device
Memory will be allocated by the application.

Change-Id: Ic31df154b52ce9013e5039ab195a9651d1811a7a
Signed-off-by: Arun Jagadish <arun.jagadish@intel.com>
This commit is contained in:
Arun Jagadish 2016-12-13 15:03:16 +05:30 committed by Johan Hedberg
commit 129a844d63

View file

@ -144,10 +144,17 @@ struct bt_avdtp_event_cb {
struct bt_avdtp_cfm_cb *cfm;
};
struct bt_pending_req {
uint8_t signal_id;
uint8_t transaction_id;
struct k_delayed_work timeout_work;
};
/** @brief Global AVDTP session structure. */
struct bt_avdtp {
struct bt_l2cap_br_chan br_chan;
struct bt_avdtp_stream *streams; /* List of AV streams */
struct bt_pending_req req;
};
/* Initialize AVDTP layer*/