return VCD_ERROR_INVALID_PARAMETER;
}
+ if (0 != vcd_client_command_collect_command()) {
+ SLOG(LOG_ERROR, TAG_VCD, "[Client Data ERROR] Fail to collect command");
+ return VCD_ERROR_OPERATION_FAILED;
+ }
+
+ if (0 >= vcd_client_get_length()) {
+ SLOG(LOG_ERROR, TAG_VCD, "[Client Data ERROR] No current command");
+ return VCD_ERROR_OPERATION_FAILED;
+ }
+
// int id_count = 1;
GSList *iter = NULL;
vc_cmd_s* temp_cmd;
*enable = info->asr_result_enabled;
return 0;
-}
\ No newline at end of file
+}
{
int ret;
- /* 2. Get commands */
- ret = vcd_client_command_collect_command();
- if (0 != ret) {
- SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to collect command : %d", ret);
- return VCD_ERROR_OPERATION_FAILED;
- }
-
- ret = vcd_client_get_length();
- if (0 == ret) {
- SLOG(LOG_WARN, TAG_VCD, "[Server WARNIING] No current command : %d", ret);
- return VCD_ERROR_OPERATION_FAILED;
- }
-
/* 3. Set command to engine */
ret = vcd_engine_set_commands();
if (0 != ret) {