aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/rt-compile.h
blob: d7a27aba327e92cf9aafc1783de9783cda442e56 (plain)
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
#ifndef __WTAP_H_
#include "wtap.h"
#endif

/* Holds info for fields defined as bytecmp. */
typedef struct {
	int	ftype;
	int	ctype;
	int	offset;
	int	length;
} bytecmp_info;


/* Holds info for fields defined as either_of */
typedef struct {
	int	ftype;
	int	ctype;
	int	field1;
	int	field2;
} eitherof_info;

int wtap_lex(void);
int wtap_parse(void);
void wtap_error(char *string);

void wtap_lex_init(char *);

int wtap_offline_filter_compile(wtap *wth, int encap_type);