struct task task;
};
-static struct gengetopt_args_info conf;
+static struct write_args_info conf;
struct stdin_task sit;
struct check_wav_task cwt;
struct initial_delay_task idt;
if (!idt->start_time.tv_sec && !idt->start_time.tv_usec)
return;
t->ret = -E_DELAY_TIMEOUT;
- if (tv_diff(&s->now, &idt->start_time, &diff) > 0)
+ if (tv_diff(now, &idt->start_time, &diff) > 0)
return;
t->ret = 1;
if (tv_diff(&s->timeout , &diff, NULL) > 0)
if (!wng->writer_nodes[i].conf)
goto out;
wng->writer_nodes[i].writer = &writers[writer_num];
- sprintf(wng->writer_nodes[i].task.status, "%s",
- writer_names[writer_num]);
}
ret = 1;
out:
PARA_INFO_LOG("%s\n", PARA_STRERROR(-t->ret));
unregister_task(t);
wng_close(g);
- wng_destroy(g);
}
int ret = -E_WRITE_SYNTAX;
struct sched s;
- cmdline_parser(argc, argv, &conf);
+ write_cmdline_parser(argc, argv, &conf);
init_supported_writers();
- init_sched();
wng = check_args();
if (!wng)