static struct stdout_task stdout_task_struct;
static struct stdout_task *sot = &stdout_task_struct;
-struct gengetopt_args_info conf;
+struct filter_args_info conf;
__printf_2_3 void para_log(int ll, const char* fmt,...)
{
struct stat statbuf;
int i;
- if (cmdline_parser(argc, argv, &conf))
+ if (filter_cmdline_parser(argc, argv, &conf))
return -E_FILTER_SYNTAX;
if (!cf) {
char *home = para_homedir();
free(home);
}
if (!stat(cf, &statbuf)) {
- if (cmdline_parser_configfile(cf, &conf, 0, 0, 0))
+ if (filter_cmdline_parser_configfile(cf, &conf, 0, 0, 0))
return -E_FILTER_SYNTAX;
}
if (!conf.list_filters_given)
int ret;
struct sched s;
- init_sched();
stdin_set_defaults(sit);
sit->buf = para_malloc(sit->bufsize),
goto out;
stdout_set_defaults(sot);
- PARA_EMERG_LOG("fc->output_eof: %d\n", *fc->output_eof);
sot->buf = fc->outbuf;
sot->loaded = fc->out_loaded;
sot->input_eof = &fc->eof;
register_task(&sit->task);
s.default_timeout.tv_sec = 1;
s.default_timeout.tv_usec = 0;
- PARA_EMERG_LOG("fc->output_eof: %d\n", *fc->output_eof);
ret = sched(&s);
out:
free(sit->buf);