aboutsummaryrefslogtreecommitdiffstats
path: root/summary.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-12-10 04:21:04 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-12-10 04:21:04 +0000
commit71b7cd503102829502ddff1667cd98a468e28c91 (patch)
tree5f561b5f4b780e8e84294440d4aecee2a9c47cca /summary.h
parent9bd3c4224bef06341e271a901ab69f28de15922d (diff)
Move GTK code out of summary.c and into gtk/summary_dlg.c
summary.c now provides a struct of info (see summary.h) Changed the name of the summary dialogue callback (hence the change in menu.c), and added a close button to the dialogue. Moved #include <gtk/gtk.h> out of print.c and into prefs.h where it was needed for GdkColor. svn path=/trunk/; revision=1273
Diffstat (limited to 'summary.h')
-rw-r--r--summary.h29
1 files changed, 19 insertions, 10 deletions
diff --git a/summary.h b/summary.h
index 6119631e6d..9e1f2a0785 100644
--- a/summary.h
+++ b/summary.h
@@ -1,7 +1,7 @@
/* summary.h
- * Definitions for capture file summary windows
+ * Definitions for capture file summary data
*
- * $Id: summary.h,v 1.3 1999/07/13 03:08:06 gram Exp $
+ * $Id: summary.h,v 1.4 1999/12/10 04:20:54 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -27,16 +27,25 @@
#define __SUMMARY_H__
typedef struct _summary_tally {
- guint32 bytes;
- double start_time;
- double stop_time;
- guint32 filtered_count;
+ guint32 bytes; /* total bytes */
+ double start_time; /* seconds, with msec resolution */
+ double stop_time; /* seconds, with msec resolution */
+ double elapsed_time; /* seconds, with msec resolution,
+ includes time before first packet
+ and after last packet */
+ int filtered_count; /* number of filtered packets */
+ int packet_count; /* total number of packets in trace */
+ const char *filename;
+ long file_length; /* file length in bytes */
+ int encap_type; /* wiretap encapsulation type */
+ int snap; /* snapshot length */
+ int drops; /* number of packet drops */
+ const char *iface; /* interface name */
+ const char *dfilter; /* display filter */
+ const char *cfilter; /* capture filter */
} summary_tally;
-
-
-void summary_prep_cb(GtkWidget *, gpointer);
-/*void summary_prep_close_cb(GtkWidget *, gpointer);*/
+void summary_fill_in(summary_tally *st);
#endif /* summary.h */