diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2014-11-28 09:22:03 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-12-03 09:18:03 +0100 |
commit | e74a398a2e0ab37371f58569d30ee84001db00f9 (patch) | |
tree | f82fe7f416c1d0be04a26e5eb1b3be63da16ffaf /android/client | |
parent | 23b554cf1bde17d753c44711c67f3ffd79fea671 (diff) | |
download | bluez-e74a398a2e0ab37371f58569d30ee84001db00f9.tar.gz |
android/client: Add support for gattc batchscan_dis_batch_scan
Diffstat (limited to 'android/client')
-rw-r--r-- | android/client/if-gatt.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c index cf55e9632..df40f334c 100644 --- a/android/client/if-gatt.c +++ b/android/client/if-gatt.c @@ -2086,6 +2086,26 @@ static void batchscan_enb_batch_scan_p(int argc, const char **argv) EXEC(if_gatt->client->batchscan_enb_batch_scan, client_if, scan_mode, scan_interval, scan_window, addr_type, discard_rule); } + +/* batchscan disable */ +static void batchscan_dis_batch_scan_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_dis_batch_scan_p(int argc, const char **argv) +{ + int client_if; + + RETURN_IF_NULL(if_gatt); + VERIFY_CLIENT_IF(2, client_if); + + EXEC(if_gatt->client->batchscan_dis_batch_scan, client_if); +} #endif /* get_device_type */ @@ -2190,6 +2210,7 @@ static struct method client_methods[] = { STD_METHODCH(batchscan_enb_batch_scan, "<client_if> <scan_mode>" " <scan_interval> <scan_window> <addr_type>" " <discard_rule>"), + STD_METHODCH(batchscan_dis_batch_scan, "<client_if>"), #else STD_METHODCH(scan, "<client_if> [1|0]"), STD_METHODCH(connect, "<client_if> <addr> [<is_direct>]"), |