diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-02-01 20:21:25 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-02-01 20:21:25 +0000 |
commit | 8f1fff2e6a5c114c6beafd2983afb55acd3d66ae (patch) | |
tree | e33c08662c708dcfe71591897fe6ffab53bce135 /epan/epan.h | |
parent | 07a925ef8b0568a2c5b8098d5734364a40eeb2f6 (diff) | |
download | wireshark-8f1fff2e6a5c114c6beafd2983afb55acd3d66ae.tar.gz wireshark-8f1fff2e6a5c114c6beafd2983afb55acd3d66ae.tar.bz2 wireshark-8f1fff2e6a5c114c6beafd2983afb55acd3d66ae.zip |
Create a more modular type system for the FT_* types. Put them
into epan/ftypes.
Re-write display filter routines using Lemon parser instead of yacc.
Besides using a different tool, the new grammar is much simpler, while
the display filter engine itself is more powerful and more easily extended.
Add dftest executable, to test display filter "bytecode" generation.
Add option to "configure" to build dftest or randpkt, both of which are not
built by default.
Implement Ed Warnicke's ideas about dranges in the new display filter and
ftype code.
Remove type FT_TEXT_ONLY in favor of FT_NONE, and have protocols registered
as FT_PROTOCOL. Thus, FT_NONE is used only for simple labels in the proto tree,
while FT_PROTOCOL is used for protocols. This was necessary for being
able to make byte slices (ranges) out of protocols, like "frame[0:3]"
Win32 Makefile.nmake's will be added tonight.
svn path=/trunk/; revision=2967
Diffstat (limited to 'epan/epan.h')
-rw-r--r-- | epan/epan.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/epan.h b/epan/epan.h index 3c6a921206..9f94865f2e 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -1,6 +1,6 @@ /* epan.h * - * $Id: epan.h,v 1.4 2000/10/16 23:17:39 guy Exp $ + * $Id: epan.h,v 1.5 2001/02/01 20:21:16 gram Exp $ * * Ethereal Protocol Analyzer Library * @@ -44,7 +44,10 @@ epan_free(epan_t*); * as the structures that the epan_dissect_t contains might have pointers * to addresses in your byte array. */ -typedef struct epan_dissect epan_dissect_t; +typedef struct { + tvbuff_t *tvb; + proto_tree *tree; +} epan_dissect_t; epan_dissect_t* epan_dissect_new(void* pseudo_header, const guint8* data, frame_data *fd, proto_tree *tree); |