diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-07-23 08:29:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-07-23 08:29:24 +0000 |
commit | 356a07b384d1b3ff58ccf8a5f01b76f879055baf (patch) | |
tree | 5546665a4b2e1fa09c5d4a74623c5c860cf70b03 /file.h | |
parent | de459d1426cc27341dcf681cf5b35c27c9a5732a (diff) | |
download | wireshark-356a07b384d1b3ff58ccf8a5f01b76f879055baf.tar.gz wireshark-356a07b384d1b3ff58ccf8a5f01b76f879055baf.tar.bz2 wireshark-356a07b384d1b3ff58ccf8a5f01b76f879055baf.zip |
Add a "File/Print" menu item, which prints *all* the packets in the
capture to a file or printer. This should eventually get the ability to
print either all the packets or only the packets selected by the display
filter, and possibly also the ability to print only packets M through N.
Get rid of "cur" member of "capture_file" structure; nobody used it.
There's no need to pass a pointer to a "dialog_button" variable to
"simple_dialog()" for the error boxes displayed if a file copy or move
fails; that dialog box is just a message box and has only an "OK"
button.
Put the declaration of "prefs" into "prefs.h".
svn path=/trunk/; revision=378
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* file.h * Definitions for file structures and routines * - * $Id: file.h,v 1.20 1999/07/13 02:52:50 gram Exp $ + * $Id: file.h,v 1.21 1999/07/23 08:29:22 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -75,8 +75,8 @@ typedef struct _capture_file { /*guint8 pd[MAX_PACKET_SIZE];*/ /* Packet data */ guint8 pd[65536]; /* Packet data */ GList *plist; /* Packet list */ - frame_data *cur; /* Frame data for current list item */ column_info cinfo; /* Column formatting information */ + FILE *print_fh; /* File we're printing to */ } capture_file; @@ -98,6 +98,7 @@ int load_cap_file(char *, capture_file *); int tail_cap_file(char *, capture_file *); /* size_t read_frame_header(capture_file *); */ +int print_packets(capture_file *cf, int to_file, const char *dest); void filter_packets(capture_file *); void change_time_formats(capture_file *); |