diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-03-23 03:14:46 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-03-23 03:14:46 +0000 |
commit | ef3dfe2077c3fd49997b7d9f3c31ba9f65ff27e2 (patch) | |
tree | 50607383870e1a22da46616611b6af517557c1e3 /file.h | |
parent | e3db269e00f32936d8385aa04df895edcbed1547 (diff) | |
download | wireshark-ef3dfe2077c3fd49997b7d9f3c31ba9f65ff27e2.tar.gz wireshark-ef3dfe2077c3fd49997b7d9f3c31ba9f65ff27e2.tar.bz2 wireshark-ef3dfe2077c3fd49997b7d9f3c31ba9f65ff27e2.zip |
Removed all references to gtk objects from packet*.[ch] files. They now
reference the protocol tree with struct proto_tree and struct proto_item
objects. That way, the packet decoding source code file can be used with
non-gtk packet decoders, like a curses-based ethereal, e.g. I also re-arranged
some of the information in packet.h to more appropriate places (like other
packet-*.[ch] files).
svn path=/trunk/; revision=223
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* file.h * Definitions for file structures and routines * - * $Id: file.h,v 1.10 1999/02/11 06:17:30 guy Exp $ + * $Id: file.h,v 1.11 1999/03/23 03:14:34 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -82,7 +82,13 @@ typedef struct _capture_file { gchar *dfilter; /* Display filter string */ gchar *cfilter; /* Capture filter string */ bpf_prog fcode; /* Compiled filter program */ - guint8 pd[MAX_PACKET_SIZE]; /* Packet data */ + /* XXX - I'm cheating for now. I'll hardcode 65536 here until I re-arrange + * more header files so that ethereal.h is split up into two files, a + * generic header and a gtk+-speficic header (or the gtk+ definitions are + * moved to different header files) --gilbert + */ + /*guint8 pd[MAX_PACKET_SIZE];*/ /* Packet data */ + guint8 pd[65536]; /* Packet data */ GList *plist; /* Packet list */ frame_data *cur; /* Current list item */ column_info cinfo; /* Column formatting information */ @@ -109,7 +115,7 @@ typedef struct _snoop_frame_hdr { #endif int open_cap_file(char *, capture_file *); -void close_cap_file(capture_file *, GtkWidget *, guint); +void close_cap_file(capture_file *, void *, guint); int load_cap_file(char *, capture_file *); /* size_t read_frame_header(capture_file *); */ |