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
f801278e
Commit
f801278e
authored
Oct 11, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: export structures in ppsi.h
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
8f687a1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
ppsi.h
include/ppsi/ppsi.h
+0
-1
conf.c
lib/conf.c
+0
-23
No files found.
include/ppsi/ppsi.h
View file @
f801278e
...
...
@@ -250,7 +250,6 @@ static inline void pp_timeout_restart_annrec(struct pp_instance *ppi)
/* The channel for an instance must be created and possibly destroyed. */
extern
int
pp_open_globals
(
struct
pp_globals
*
ppg
);
extern
int
pp_close_globals
(
struct
pp_globals
*
ppg
);
extern
int
pp_parse_cmdline
(
struct
pp_globals
*
ppg
,
int
argc
,
char
**
argv
);
...
...
lib/conf.c
View file @
f801278e
...
...
@@ -101,29 +101,6 @@ static int f_diag(int lineno, int iarg, char *sarg)
return
0
;
}
typedef
int
(
*
cfg_handler
)(
int
lineno
,
int
iarg
,
char
*
sarg
);
/* /me lazy... */
/*
* The parser is using a table, built up by the following structures
*/
struct
pp_argname
{
char
*
name
;
int
value
;
};
enum
pp_argtype
{
ARG_NONE
,
ARG_INT
,
ARG_STR
,
ARG_NAMES
,
};
struct
pp_argline
{
cfg_handler
f
;
char
*
keyword
;
/* Each line starts with a keyword */
enum
pp_argtype
t
;
struct
pp_argname
*
args
;
};
/* These are the tables for the parser */
static
struct
pp_argname
arg_proto
[]
=
{
{
"raw"
,
PPSI_PROTO_RAW
},
...
...
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