[PATCH BlueZ 3/4] AVRCP: Gets Avrcp session

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

 



From: Vani Patel <vani.patel@xxxxxxxxxxxxxx>

Defines a function that will return player session
---
 audio/avrcp.c |    5 +++++
 audio/avrcp.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/audio/avrcp.c b/audio/avrcp.c
index f4f1b6a..b11dc21 100755
--- a/audio/avrcp.c
+++ b/audio/avrcp.c
@@ -1385,3 +1385,8 @@ void register_volume_notification(struct avctp *session)
 				AVC_CTYPE_NOTIFY, AVC_SUBUNIT_PANEL,
 				buf, length, COMMAND);
 }
+
+struct avctp *avrcp_get_session(struct avrcp_player *player)
+{
+	return player->session;
+}
diff --git a/audio/avrcp.h b/audio/avrcp.h
index 26432bc..21cbc5c 100755
--- a/audio/avrcp.h
+++ b/audio/avrcp.h
@@ -103,3 +103,4 @@ int avrcp_player_set_volume(struct avrcp_player *player, void *data);
 
 size_t avrcp_handle_vendor_reject(uint8_t *code, uint8_t *operands);
 void register_volume_notification(struct avctp *session);
+struct avctp *avrcp_get_session(struct avrcp_player *player);
-- 
1.7.5.4

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