From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 2/4] android/client: Add AVRCP remote_features_cb support
Date: Thu, 6 Mar 2014 15:03:21 +0200 [thread overview]
Message-ID: <1394111003-2396-2-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1394111003-2396-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
android/client/if-rc.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/android/client/if-rc.c b/android/client/if-rc.c
index 55fdf1d..60c3247 100644
--- a/android/client/if-rc.c
+++ b/android/client/if-rc.c
@@ -46,6 +46,15 @@ SINTMAP(btrc_media_attr_t, -1, "(unknown)")
DELEMENT(BTRC_MEDIA_ATTR_PLAYING_TIME),
ENDMAP
+static char last_addr[MAX_ADDR_STR_LEN];
+
+static void remote_features_cb(bt_bdaddr_t *bd_addr,
+ btrc_remote_features_t features)
+{
+ haltest_info("%s: remote_bd_addr=%s features=%u\n", __func__,
+ bt_bdaddr_t2str(bd_addr, last_addr), features);
+}
+
static void get_play_status_cb(void)
{
haltest_info("%s\n", __func__);
@@ -73,6 +82,7 @@ static void volume_change_cb(uint8_t volume, uint8_t ctype)
static btrc_callbacks_t rc_cbacks = {
.size = sizeof(rc_cbacks),
+ .remote_features_cb = remote_features_cb,
.get_play_status_cb = get_play_status_cb,
.get_element_attr_cb = get_element_attr_cb,
.register_notification_cb = register_notification_cb,
--
1.8.5.3
next prev parent reply other threads:[~2014-03-06 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 13:03 [PATCH BlueZ 1/4] android/avrcp: Add remote features notification Luiz Augusto von Dentz
2014-03-06 13:03 ` Luiz Augusto von Dentz [this message]
2014-03-06 13:03 ` [PATCH BlueZ 3/4] android/arvrcp: Fix not parsing SDP record correctly Luiz Augusto von Dentz
2014-03-06 13:03 ` [PATCH BlueZ 4/4] android/avrcp: Fix warnings when freeing avrcp_device struct Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394111003-2396-2-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox