From: Jihoon Jung Date: Tue, 24 Jul 2018 06:24:18 +0000 (+0900) Subject: Add proper device parameter when device eject X-Git-Tag: submit/tizen/20190131.065036~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f4aac226a5cb1a79a4a49a5ba2e401705fd52ff;p=platform%2Fcore%2Fapi%2Fmulti-device-group.git Add proper device parameter when device eject Change-Id: Ibf62dd96c37f90623bbe13c20de48f0870682806 Signed-off-by: Jihoon Jung --- diff --git a/test/mdg-manager.c b/test/mdg-manager.c index f06cd8e..01a5b3b 100755 --- a/test/mdg-manager.c +++ b/test/mdg-manager.c @@ -137,12 +137,12 @@ static int run_device_eject(MManager *mm, struct menu_data *menu) } } - if (NULL == found_device_list) { + if (NULL == found_invited_device_list) { msgr("Find device first"); return RET_FAILURE; } - device = g_list_nth_data(found_device_list, idx - 1); + device = g_list_nth_data(found_invited_device_list, idx - 1); if (NULL == device) { msgr("Failed to g_hash_table_find"); return RET_FAILURE; @@ -1219,7 +1219,7 @@ static struct menu_data menu_group_invite_device[] = { static struct menu_data menu_group_eject_device[] = { { "0", "Show Found Group(s)", NULL, run_group_show, NULL }, - { "1", "Show Found Device(s)", NULL, run_devices_show, NULL }, + { "1", "Show Found Invited Device(s)", NULL, run_invited_devices_show, NULL }, { "2", "Group Index", NULL, NULL, group_idx }, { "3", "Device Index", NULL, NULL, device_idx }, { "4", "Run", NULL, run_device_eject, NULL },