Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
9bfced78
Commit
9bfced78
authored
Oct 11, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: add 'diagnostics', per-port and global
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ad1297dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
conf.c
lib/conf.c
+13
-0
No files found.
lib/conf.c
View file @
9bfced78
...
...
@@ -89,6 +89,18 @@ static int f_accuracy(int lineno, int iarg, char *sarg)
return
0
;
}
/* Diagnostics can be per-port or global */
static
int
f_diag
(
int
lineno
,
int
iarg
,
char
*
sarg
)
{
unsigned
long
level
=
pp_diag_parse
(
sarg
);
if
(
current_ppi
)
current_ppi
->
flags
=
level
;
else
pp_global_flags
=
level
;
return
0
;
}
typedef
int
(
*
cfg_handler
)(
int
lineno
,
int
iarg
,
char
*
sarg
);
/* /me lazy... */
/*
...
...
@@ -137,6 +149,7 @@ static struct argline arglines[] = {
{
f_proto
,
"proto"
,
ARG_NAMES
,
arg_proto
},
{
f_role
,
"role"
,
ARG_NAMES
,
arg_role
},
{
f_ext
,
"extension"
,
ARG_NAMES
,
arg_ext
},
{
f_diag
,
"diagnostics"
,
ARG_STR
},
{
f_class
,
"clock-class"
,
ARG_INT
},
{
f_accuracy
,
"clock-accuracy"
,
ARG_INT
},
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment