All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 6/7] android/client: Add support for gattc batchscan_read_reports cmd
Date: Fri, 28 Nov 2014 09:22:04 +0100	[thread overview]
Message-ID: <1417162925-17511-6-git-send-email-grzegorz.kolodziejczyk@tieto.com> (raw)
In-Reply-To: <1417162925-17511-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>

---
 android/client/if-gatt.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index df40f33..b39a5ec 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -2106,6 +2106,28 @@ static void batchscan_dis_batch_scan_p(int argc, const char **argv)
 
 	EXEC(if_gatt->client->batchscan_dis_batch_scan, client_if);
 }
+
+/* batchscan read reports */
+static void batchscan_read_reports_c(int argc, const char **argv,
+					enum_func *enum_func, void **user)
+{
+	if (argc == 2) {
+		*user = client_if_str;
+		*enum_func = enum_one_string;
+	}
+}
+
+static void batchscan_read_reports_p(int argc, const char **argv)
+{
+	int client_if;
+	int scan_mode;
+
+	RETURN_IF_NULL(if_gatt);
+	VERIFY_CLIENT_IF(2, client_if);
+	VERIFY_SCAN_MODE(3, scan_mode);
+
+	EXEC(if_gatt->client->batchscan_read_reports, client_if, scan_mode);
+}
 #endif
 
 /* get_device_type */
@@ -2211,6 +2233,7 @@ static struct method client_methods[] = {
 			" <scan_interval> <scan_window> <addr_type>"
 			" <discard_rule>"),
 	STD_METHODCH(batchscan_dis_batch_scan, "<client_if>"),
+	STD_METHODCH(batchscan_read_reports, "<client_if> <scan_mode>"),
 #else
 	STD_METHODCH(scan, "<client_if> [1|0]"),
 	STD_METHODCH(connect, "<client_if> <addr> [<is_direct>]"),
-- 
1.9.3


  parent reply	other threads:[~2014-11-28  8:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28  8:21 [PATCH 1/7] android/client: Add support for gattc multi_adv_set_inst_data cmd Grzegorz Kolodziejczyk
2014-11-28  8:22 ` [PATCH 2/7] android/client: Add support for gattc multi_adv_disable cmd Grzegorz Kolodziejczyk
2014-11-28  8:22 ` [PATCH 3/7] android/client: Add support for gattc batch_cfg_storage cmd Grzegorz Kolodziejczyk
2014-11-28  8:22 ` [PATCH 4/7] android/client: Add support for gattc batchscan_enb_batch_scan cmd Grzegorz Kolodziejczyk
2014-11-28  8:22 ` [PATCH 5/7] android/client: Add support for gattc batchscan_dis_batch_scan cmd Grzegorz Kolodziejczyk
2014-11-28  8:22 ` Grzegorz Kolodziejczyk [this message]
2014-11-28  8:22 ` [PATCH 7/7] android/client: Add gatt server callbacks support for Android 5.0 Grzegorz Kolodziejczyk
2014-12-03  8:22 ` [PATCH 1/7] android/client: Add support for gattc multi_adv_set_inst_data cmd Szymon Janc

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=1417162925-17511-6-git-send-email-grzegorz.kolodziejczyk@tieto.com \
    --to=grzegorz.kolodziejczyk@tieto.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.