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