summaryrefslogtreecommitdiff
path: root/android/client
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-11-12 17:14:28 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-11-13 18:06:26 +0100
commit12c3a0adb6d69ef7de89cacecf53dc57843fccfa (patch)
treec0928c5fa30eb361254edeec536841dbe45aefe7 /android/client
parent94339ef471ca8981d1fa6231ad9c7415aec2e02a (diff)
downloadbluez-12c3a0adb6d69ef7de89cacecf53dc57843fccfa.tar.gz
android/client: Fix help for handsfree haltest tool
Diffstat (limited to 'android/client')
-rw-r--r--android/client/if-hf.c37
1 files changed, 28 insertions, 9 deletions
diff --git a/android/client/if-hf.c b/android/client/if-hf.c
index b0dd13a2d..c64d4121e 100644
--- a/android/client/if-hf.c
+++ b/android/client/if-hf.c
@@ -976,25 +976,44 @@ static void cleanup_p(int argc, const char **argv)
}
static struct method methods[] = {
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ STD_METHODH(init, "[<max_hf_clients>]"),
+ STD_METHODH(start_voice_recognition, "<addr>"),
+ STD_METHODH(stop_voice_recognition, "<addr>"),
+ STD_METHODCH(volume_control, "<vol_type> <volume> <addr>"),
+ STD_METHODH(cops_response, "<cops string> <addr>"),
+ STD_METHODCH(cind_response,
+ "<svc> <num_active> <num_held> <setup_state> <signal> "
+ "<roam> <batt_chg> <addr>"),
+ STD_METHODH(formatted_at_response, "<at_response> <addr>"),
+ STD_METHODCH(at_response, "<response_code> [<error_code> <bdaddr>]"),
+ STD_METHODCH(clcc_response,
+ "<index> <direction> <state> <mode> <mpty> <number> "
+ "<type> <addr>"),
+#else
STD_METHOD(init),
- STD_METHODCH(connect, "<addr>"),
- STD_METHODCH(disconnect, "<addr>"),
- STD_METHODCH(connect_audio, "<addr>"),
- STD_METHODCH(disconnect_audio, "<addr>"),
STD_METHOD(start_voice_recognition),
STD_METHOD(stop_voice_recognition),
STD_METHODCH(volume_control, "<vol_type> <volume>"),
- STD_METHODCH(device_status_notification,
- "<ntk_state> <svt_type> <signal> <batt_chg>"),
STD_METHODH(cops_response, "<cops string>"),
STD_METHODCH(cind_response,
- "<svc> <num_active> <num_held> <setup_state> <signal> <roam> <batt_chg>"),
+ "<svc> <num_active> <num_held> <setup_state> <signal> "
+ "<roam> <batt_chg>"),
STD_METHODH(formatted_at_response, "<at_response>"),
STD_METHODCH(at_response, "<response_code> [<error_code>]"),
STD_METHODCH(clcc_response,
- "<index> <direction> <state> <mode> <mpty> <number> <type>"),
+ "<index> <direction> <state> <mode> <mpty> <number> "
+ "<type>"),
+#endif
+ STD_METHODCH(connect, "<addr>"),
+ STD_METHODCH(disconnect, "<addr>"),
+ STD_METHODCH(connect_audio, "<addr>"),
+ STD_METHODCH(disconnect_audio, "<addr>"),
+ STD_METHODCH(device_status_notification,
+ "<ntk_state> <svt_type> <signal> <batt_chg>"),
STD_METHODCH(phone_state_change,
- "<num_active> <num_held> <setup_state> <number> <type>"),
+ "<num_active> <num_held> <setup_state> <number> "
+ "<type>"),
STD_METHOD(cleanup),
END_METHOD
};