Diff between 61b239ee5a6150b0450e0652daeeb3255f0cd6c1 and 022a64e7a16999fb1c4e20f7810e83597e96f2de

Changed Files

File Additions Deletions Status
android/client/if-gatt.c +5 -0 modified

Full Patch

diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index 72f97ba..301262b 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -1503,8 +1503,13 @@ static void test_command_p(int argc, const char **argv)
 static struct method client_methods[] = {
 	STD_METHODH(register_client, "[<uuid>]"),
 	STD_METHODCH(unregister_client, "<client_if>"),
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+	STD_METHODCH(scan, "[1|0]"),
+	STD_METHODCH(connect, "<client_if> <addr> [<is_direct>] [<transport]"),
+#else
 	STD_METHODCH(scan, "<client_if> [1|0]"),
 	STD_METHODCH(connect, "<client_if> <addr> [<is_direct>]"),
+#endif
 	STD_METHODCH(disconnect, "<client_if> <addr> <conn_id>"),
 	STD_METHODCH(refresh, "<client_if> <addr>"),
 	STD_METHODCH(search_service, "<conn_id> [<uuid>]"),