Commit f801278e authored by Alessandro Rubini's avatar Alessandro Rubini

config: export structures in ppsi.h

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 8f687a1d
......@@ -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);
......
......@@ -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},
......
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