/*
- * Copyright (C) 2005-2006 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
static struct stdout_task stdout_task_struct;
static struct stdout_task *sot = &stdout_task_struct;
-struct gengetopt_args_info conf;
+static struct filter_args_info conf;
__printf_2_3 void para_log(int ll, const char* fmt,...)
{
va_end(argp);
}
-void filter_event_handler(struct task *t)
+static void filter_event_handler(struct task *t)
{
PARA_NOTICE_LOG("%s\n", PARA_STRERROR(-t->ret));
unregister_task(t);
}
}
-
static int init_filter_chain(void)
{
int i, filter_num;
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)