From 09930d0047f10e7946564c95e24f1f8b18b499be Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Tue, 22 Apr 2014 15:06:09 +0300 Subject: [PATCH] android/client: Add destroy_channel 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 6d1d8c42a..ddf4d4b58 100644 --- a/android/client/if-hl.c +++ b/android/client/if-hl.c @@ -180,6 +180,24 @@ static void connect_channel_p(int argc, const char **argv) &channel_id); } +/* destroy_channel */ + +static void destroy_channel_p(int argc, const char **argv) +{ + uint32_t channel_id; + + RETURN_IF_NULL(if_hl); + + if (argc <= 2) { + haltest_error("No channel id is specified"); + return; + } + + channel_id = (uint32_t) atoi(argv[2]); + + EXEC(if_hl->destroy_channel, channel_id); +} + /* cleanup */ static void cleanup_p(int argc, const char **argv) @@ -199,6 +217,7 @@ static struct method methods[] = { "..."), STD_METHODH(unregister_application, ""), STD_METHODH(connect_channel, " "), + STD_METHODH(destroy_channel, ""), STD_METHOD(cleanup), END_METHOD }; -- 2.47.3