From 5e58898b977b8229c7e5a83c31bea1b9a0e500c2 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Tue, 22 Apr 2014 15:06:07 +0300 Subject: [PATCH] android/client: Add unregister_application support to haltest --- android/client/if-hl.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/android/client/if-hl.c b/android/client/if-hl.c index 220c02419..2f330f62c 100644 --- a/android/client/if-hl.c +++ b/android/client/if-hl.c @@ -133,6 +133,24 @@ static void register_application_p(int argc, const char **argv) free(reg.mdep_cfg); } +/* unregister_application */ + +static void unregister_application_p(int argc, const char **argv) +{ + uint32_t app_id; + + RETURN_IF_NULL(if_hl); + + if (argc <= 2) { + haltest_error("No app id is specified"); + return; + } + + app_id = (uint32_t) atoi(argv[2]); + + EXEC(if_hl->unregister_application, app_id); +} + /* cleanup */ static void cleanup_p(int argc, const char **argv) @@ -150,6 +168,7 @@ static struct method methods[] = { "\n" "[[] [] [] []]" "..."), + STD_METHODH(unregister_application, ""), STD_METHOD(cleanup), END_METHOD }; -- 2.47.3