From 53331d3f668d259f1a38050716457786d2ac2c30 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 28 Nov 2014 09:22:00 +0100 Subject: [PATCH] android/client: Add support for gattc multi_adv_disable --- android/client/if-gatt.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c index 5072f9139..89fa45f90 100644 --- a/android/client/if-gatt.c +++ b/android/client/if-gatt.c @@ -2009,6 +2009,26 @@ static void multi_adv_set_inst_data_p(int argc, const char **argv) (char *) manufacturer_data, service_data_len, (char *) service_data, service_uuid_len, (char *) service_uuid); } + +/* multi advertising disable */ +static void multi_adv_disable_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 multi_adv_disable_p(int argc, const char **argv) +{ + int client_if; + + RETURN_IF_NULL(if_gatt); + VERIFY_CLIENT_IF(2, client_if); + + EXEC(if_gatt->client->multi_adv_disable, client_if); +} #endif /* get_device_type */ @@ -2106,6 +2126,7 @@ static struct method client_methods[] = { " [] " " [] []" " []"), + STD_METHODCH(multi_adv_disable, ""), #else STD_METHODCH(scan, " [1|0]"), STD_METHODCH(connect, " []"), -- 2.47.3