forked from scottransom/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwapp_key.h
29 lines (26 loc) · 829 Bytes
/
wapp_key.h
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
struct HEADERKEY {
void *next;
char *name;
int offset;
int type;
int len; /* length of data element */
int alen; /* array length */
};
struct HEADERVAL {
void *value;
struct HEADERKEY *key;
};
struct HEADERP {
struct HEADERKEY *head;
struct HEADERKEY *tail;
char *buf; /* ascii C header declaration */
int offset; /* len of buf ( offset to start of generic head in file */
void *header; /* pointer to instance of generic header */
int headlen; /* len of generic header */
int fd; /* file des */
int yacc_offset; /* last returned by head_input */
};
struct HEADERP *head_parse(FILE *f);
extern struct HEADERKEY headerkey[];
int find_hdrval(struct HEADERP *h, char *name, struct HEADERVAL *hdrval);
void close_parse(struct HEADERP *h);