DORMANTno replies

[PATCH Bluez v2 3/4] AVRCP: Gets Avrcp session

From: Vani <hidden>
Date: 2012-05-14 10:17:53
Subsystem: the rest · Maintainer: Linus Torvalds

From: Vani Patel <redacted>

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 9ab8020..3964777 100644
--- a/audio/avrcp.c
+++ b/audio/avrcp.c
@@ -1353,3 +1353,8 @@ void register_volume_notification(struct avctp *session)
 						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 d299b67..6ca5ea4 100644
--- a/audio/avrcp.h
+++ b/audio/avrcp.h
@@ -102,3 +102,4 @@ int avrcp_player_event(struct avrcp_player *player, uint8_t id, 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help