demo: make 'send_data' functionality use MOT enabled devices list
authorsaerome.kim <saerome.kim@samsung.com>
Thu, 1 Feb 2018 04:32:28 +0000 (13:32 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:48 +0000 (19:38 +0900)
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
capi/demo/comp-manager.c
mot-agent_1125_20180201110339.zip [new file with mode: 0644]
mot-agent_1133_20180131142433.zip [new file with mode: 0644]
mot-agent_1535_20180131112756.zip [new file with mode: 0644]
mot-agent_4122_20180201111912.zip [new file with mode: 0644]

index 77b3022..e9ec973 100644 (file)
@@ -769,8 +769,8 @@ static int __send_data(int idx)
        char *address = NULL;
        companion_device_h device = NULL;
 
-       if (my_devices_list) {
-               device = g_list_nth_data(my_devices_list, idx - 1);
+       if (found_device_list) {
+               device = g_list_nth_data(found_device_list, idx - 1);
                if (NULL == device) {
                        msgr("Find my device first");
                        return RET_FAILURE;
@@ -800,7 +800,7 @@ static int __send_data(int idx)
 static int run_send_data(MManager *mm, struct menu_data *menu)
 {
        int idx = 0;
-       int count = g_list_length(my_devices_list);
+       int count = g_list_length(found_device_list);
 
        if (0 >= count ) {
                msgr("No Device");
@@ -821,7 +821,7 @@ static int run_send_data_all(MManager *mm, struct menu_data *menu)
 {
        int count = 0;
 
-       count = g_list_length(my_devices_list);
+       count = g_list_length(found_device_list);
 
        if (0 >= count ) {
                msgr("No Device");
diff --git a/mot-agent_1125_20180201110339.zip b/mot-agent_1125_20180201110339.zip
new file mode 100644 (file)
index 0000000..c90ba89
Binary files /dev/null and b/mot-agent_1125_20180201110339.zip differ
diff --git a/mot-agent_1133_20180131142433.zip b/mot-agent_1133_20180131142433.zip
new file mode 100644 (file)
index 0000000..11d2d80
Binary files /dev/null and b/mot-agent_1133_20180131142433.zip differ
diff --git a/mot-agent_1535_20180131112756.zip b/mot-agent_1535_20180131112756.zip
new file mode 100644 (file)
index 0000000..565708b
Binary files /dev/null and b/mot-agent_1535_20180131112756.zip differ
diff --git a/mot-agent_4122_20180201111912.zip b/mot-agent_4122_20180201111912.zip
new file mode 100644 (file)
index 0000000..6a7df25
Binary files /dev/null and b/mot-agent_4122_20180201111912.zip differ