Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCH 3/4] android/client: Fix help for handsfree haltest tool Date: Wed, 12 Nov 2014 17:14:28 +0200 Message-Id: <1415805269-6838-3-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1415805269-6838-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1415805269-6838-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko --- android/client/if-hf.c | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/android/client/if-hf.c b/android/client/if-hf.c index b0dd13a..c64d412 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, "[]"), + STD_METHODH(start_voice_recognition, ""), + STD_METHODH(stop_voice_recognition, ""), + STD_METHODCH(volume_control, " "), + STD_METHODH(cops_response, " "), + STD_METHODCH(cind_response, + " " + " "), + STD_METHODH(formatted_at_response, " "), + STD_METHODCH(at_response, " [ ]"), + STD_METHODCH(clcc_response, + " " + " "), +#else STD_METHOD(init), - STD_METHODCH(connect, ""), - STD_METHODCH(disconnect, ""), - STD_METHODCH(connect_audio, ""), - STD_METHODCH(disconnect_audio, ""), STD_METHOD(start_voice_recognition), STD_METHOD(stop_voice_recognition), STD_METHODCH(volume_control, " "), - STD_METHODCH(device_status_notification, - " "), STD_METHODH(cops_response, ""), STD_METHODCH(cind_response, - " "), + " " + " "), STD_METHODH(formatted_at_response, ""), STD_METHODCH(at_response, " []"), STD_METHODCH(clcc_response, - " "), + " " + ""), +#endif + STD_METHODCH(connect, ""), + STD_METHODCH(disconnect, ""), + STD_METHODCH(connect_audio, ""), + STD_METHODCH(disconnect_audio, ""), + STD_METHODCH(device_status_notification, + " "), STD_METHODCH(phone_state_change, - " "), + " " + ""), STD_METHOD(cleanup), END_METHOD }; -- 1.9.1