File: info.h

package info (click to toggle)
ppxp 0.99120923-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,812 kB
  • ctags: 3,704
  • sloc: ansic: 24,532; tcl: 3,992; makefile: 517; sh: 80
file content (33 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef PPPINFO_H
#define PPPINFO_H

#include <xcio.h>

enum PPPXINFO_TYPE {
    PPXPINFO_NONE,
    PPXPINFO_INT,
    PPXPINFO_LONG,
    PPXPINFO_STR,
};

struct keyval_s {
    char *keyval[2];
    int type;
};

struct ppxpinfo_ops {
    struct keyval_s *(*new)(void);
    int (*parse)(struct keyval_s *, char *, int);
    void (*clear)(struct keyval_s *);
    void (*delete)(struct keyval_s *);
};

#define N_PPPINFO 15
#define N_PWDINFO 5
#define N_CONINFO 4

extern struct ppxpinfo_ops PPxP_pppInfo;
extern struct ppxpinfo_ops PPxP_PwdInfo;
extern struct ppxpinfo_ops PPxP_ConInfo;

#endif /* PPPINFO_H */