demo: fix build warnings
authorsaerome.kim <saerome.kim@samsung.com>
Tue, 16 Jan 2018 10:37:21 +0000 (19:37 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:40 +0000 (19:38 +0900)
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
capi/demo/comp-manager.c
src/companion-manager/include/comp_group.h

index 54cf83e..960427a 100644 (file)
@@ -310,6 +310,11 @@ bool _device_found_cb(companion_device_h device, void *user_data)
        return TRUE;
 }
 
+static void _destroy_comp_device_info(gpointer data)
+{
+       companion_device_information_destroy((companion_device_h)data);
+}
+
 static int run_devices_find(MManager *mm, struct menu_data *menu)
 {
        int ret;
@@ -327,7 +332,7 @@ static int run_devices_find(MManager *mm, struct menu_data *menu)
        msg(" - companion_device_find() ret: [0x%X] [%s]", ret, comp_error_to_string(ret));
 
        if (found_device_list) {
-               g_list_free_full(found_device_list, companion_device_information_destroy);
+               g_list_free_full(found_device_list, _destroy_comp_device_info);
                found_device_list = NULL;
        }
 
@@ -499,6 +504,12 @@ void _group_finish_cb(int result, void *user_data)
        msgb("find operation finished");
 }
 
+static void _destroy_comp_group_info(gpointer data)
+{
+       companion_group_information_destroy((companion_group_h)data);
+}
+
+
 static int run_group_find(MManager *mm, struct menu_data *menu)
 {
        int ret;
@@ -516,7 +527,7 @@ static int run_group_find(MManager *mm, struct menu_data *menu)
        msg(" - companion_group_find() ret: [0x%X] [%s]", ret, comp_error_to_string(ret));
 
        if (found_group_list) {
-               g_list_free_full(found_group_list, companion_group_information_destroy);
+               g_list_free_full(found_group_list, _destroy_comp_group_info);
                found_group_list = NULL;
        }
 
index 443f360..7724e71 100755 (executable)
@@ -46,6 +46,7 @@ int comp_group_get_groups(comp_group_t ***handles, int *count); //Get all of gro
 int comp_group_get_remote_devices(/* callback */); //Get all of device in network (Async)
 
 void comp_group_add_new_mot_device(comp_mot_device_t *device);
+void comp_group_notify_mot_enable_device_done(int device_count);
 int comp_group_find_mot_enabled_devices();
 
 char *comp_group_invite_get_uuid();