From 9c53fe3df3ef9eaf6465a673ed27691bea45d911 Mon Sep 17 00:00:00 2001 From: Aleksander Drewnicki Date: Thu, 9 Oct 2014 14:45:14 +0200 Subject: [PATCH] android/client: Add completion for mce method This patch adds completion functions to mce method. --- android/client/if-mce.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/android/client/if-mce.c b/android/client/if-mce.c index 76c9f73af..5f101e001 100644 --- a/android/client/if-mce.c +++ b/android/client/if-mce.c @@ -54,6 +54,15 @@ static void init_p(int argc, const char **argv) EXEC(if_mce->init, &mce_cbacks); } +static void get_remote_mas_instances_c(int argc, const char **argv, + enum_func *enum_func, void **user) +{ + if (argc == 3) { + *user = NULL; + *enum_func = enum_devices; + } +} + /* search for MAS instances on remote device */ static void get_remote_mas_instances_p(int argc, const char **argv) @@ -68,7 +77,7 @@ static void get_remote_mas_instances_p(int argc, const char **argv) static struct method methods[] = { STD_METHOD(init), - STD_METHODH(get_remote_mas_instances, ""), + STD_METHODCH(get_remote_mas_instances, ""), END_METHOD }; -- 2.47.3