[sample] apply library changes
authorJeonghoon Park <jh1979.park@samsung.com>
Fri, 17 May 2019 06:49:48 +0000 (15:49 +0900)
committer박정훈/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jh1979.park@samsung.com>
Fri, 17 May 2019 08:46:31 +0000 (17:46 +0900)
src/devicemanagerservice.c

index a62d995..b8caf76 100644 (file)
@@ -103,7 +103,7 @@ static void __reboot(void *data)
        }
        ad->command = command;
 
-       ret = idm_command_set_power_cmd(command, IDM_CMD_POWER_REBOOT, NULL);
+       ret = idm_command_set_cmd_detail(command, IDM_CMD_REBOOT, NULL);
        if (ret != 0) {
                _E("failed to idm_command_set_power_cmd");
                idm_command_free(command);
@@ -159,7 +159,7 @@ static void __get_log_archive(char *log_path_arr[], const char *archive_file, un
                return;
        }
 
-       ret = idm_command_set_diagnosis_cmd(command, IDM_CMD_DIAGNOSIS_GET_LOG_ARCHIVE, request);
+       ret = idm_command_set_cmd_detail(command, IDM_CMD_GET_LOG_ARCHIVE, request);
 
        g_free(request);
        request = NULL;
@@ -255,7 +255,7 @@ static void __get_taskinfo(int duration, int period, unsigned long id, idm_resul
                return;
        }
 
-       ret = idm_command_set_info_cmd(command, IDM_CMD_INFO_GET_TASKINFO, request);
+       ret = idm_command_set_cmd_detail(command, IDM_CMD_GET_TASKINFO, request);
 
        g_free(request);
        request = NULL;