From: Szymon Janc <szymon.janc@tieto.com>
To: <linux-bluetooth@vger.kernel.org>
Cc: Marcin Kraglak <marcin.kraglak@tieto.com>
Subject: [PATCH 3/5] android: Add stub for handling get_remote_services command
Date: Thu, 31 Oct 2013 16:25:50 +0100 [thread overview]
Message-ID: <1383233152-15040-3-git-send-email-szymon.janc@tieto.com> (raw)
In-Reply-To: <1383233152-15040-1-git-send-email-szymon.janc@tieto.com>
From: Marcin Kraglak <marcin.kraglak@tieto.com>
Change-Id: I3a88c104a496fa3c3391b11dc85b6607861158f3
---
android/adapter.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/android/adapter.c b/android/adapter.c
index 10d4a8e..6ee4a21 100644
--- a/android/adapter.c
+++ b/android/adapter.c
@@ -1215,6 +1215,11 @@ static uint8_t ssp_reply(void *buf, uint16_t len)
return status;
}
+static uint8_t get_remote_services(void *buf, uint16_t len)
+{
+ return HAL_STATUS_UNSUPPORTED;
+}
+
void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
uint16_t len)
{
@@ -1308,6 +1313,11 @@ void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
goto error;
break;
+ case HAL_OP_GET_REMOTE_SERVICES:
+ status = get_remote_services(buf, len);
+ if (status != HAL_STATUS_SUCCESS)
+ goto error;
+ break;
default:
DBG("Unhandled command, opcode 0x%x", opcode);
goto error;
--
1.8.4.1
next prev parent reply other threads:[~2013-10-31 15:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-31 15:25 [PATCH 1/5] android: Fix typo in get_remote_services command Szymon Janc
2013-10-31 15:25 ` [PATCH 2/5] android/hal: Add support for sending " Szymon Janc
2013-10-31 15:25 ` Szymon Janc [this message]
2013-10-31 15:25 ` [PATCH 4/5] android: Initial implementation of get_remote_services Szymon Janc
2013-10-31 15:25 ` [PATCH 5/5] android: Pass found uuids to remote_device_properties_cb Szymon Janc
2013-10-31 18:27 ` 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=1383233152-15040-3-git-send-email-szymon.janc@tieto.com \
--to=szymon.janc@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcin.kraglak@tieto.com \
/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