File: packets.h

package info (click to toggle)
lsfcc 0.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 324 kB
  • ctags: 217
  • sloc: ansic: 1,551; yacc: 408; sh: 337; lex: 85; makefile: 55
file content (20 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef H_PACKETS
#define H_PACKETS

struct fields {
	int num;
	struct field *f;
};

struct field {
	char *id;
	int len;
};

char *packet_add(char *, struct fields *);
char *field_add(struct fields *, char *, int);
struct fields *fields_new();
int packet_size(char *);
int packet_offset(char *, char *, int *, int *);

#endif /* !H_PACKETS */