From 129a844d63dd0fd960221f610e610309a63b04cb Mon Sep 17 00:00:00 2001 From: Arun Jagadish Date: Tue, 13 Dec 2016 15:03:16 +0530 Subject: [PATCH] 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 --- subsys/bluetooth/host/avdtp_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subsys/bluetooth/host/avdtp_internal.h b/subsys/bluetooth/host/avdtp_internal.h index 0c8883a7cf0..c967aff67be 100644 --- a/subsys/bluetooth/host/avdtp_internal.h +++ b/subsys/bluetooth/host/avdtp_internal.h @@ -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*/