[PATCHv2 3/6] android/avrcp: Implement avrcp_get_avctp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 android/avrcp-lib.c | 5 +++++
 android/avrcp-lib.h | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c
index ef48fa7..9180abd 100644
--- a/android/avrcp-lib.c
+++ b/android/avrcp-lib.c
@@ -39,6 +39,11 @@ struct avrcp {
 	struct avctp	*session;
 };
 
+struct avctp *avrcp_get_avctp(struct avrcp *session)
+{
+	return session->session;
+}
+
 void avrcp_shutdown(struct avrcp *session)
 {
 	if (session->session)
diff --git a/android/avrcp-lib.h b/android/avrcp-lib.h
index 7955d56..7bd8b25 100644
--- a/android/avrcp-lib.h
+++ b/android/avrcp-lib.h
@@ -21,8 +21,11 @@
  *
  */
 
+struct avrcp;
+
 typedef void (*avrcp_destroy_cb_t) (void *user_data);
 
+struct avctp *avrcp_get_avctp(struct avrcp *session);
 struct avrcp *avrcp_new(int fd, size_t imtu, size_t omtu, uint16_t version);
 void avrcp_shutdown(struct avrcp *session);
 void avrcp_set_destroy_cb(struct avrcp *session, avrcp_destroy_cb_t cb,
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux