Commit 9d033d50 authored by Davide Ciminaghi's avatar Davide Ciminaghi Committed by Alessandro Rubini

config: add priority1 option

This is equivalent to the -p cmdline option, which will be removed.
Signed-off-by: Davide Ciminaghi's avatarDavide Ciminaghi <ciminaghi@gnudd.com>
parent f84a4b7e
......@@ -247,6 +247,12 @@ static int f_sync_intvl(int lineno, struct pp_globals *ppg,
return 0;
}
static int f_prio1(int lineno, struct pp_globals *ppg, union pp_cfg_arg *arg)
{
CHECK_PPI(0);
GOPTS(ppg)->prio1 = arg->i;
return 0;
}
/* These are the tables for the parser */
static struct pp_argname arg_proto[] = {
......@@ -284,6 +290,7 @@ static struct pp_argline pp_global_arglines[] = {
{ f_domain, "domain-number", ARG_INT},
{ f_announce_intvl, "announce-interval", ARG_INT},
{ f_sync_intvl, "sync-interval", ARG_INT},
{ f_prio1, "priority1" , ARG_INT},
{}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment