aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-06 02:21:26 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-06 02:21:26 +0000
commita936b559df71128d0d40de3647248464aa60b534 (patch)
treeaa6e4bbf6f48a2c8e17b6ddb772bf9b1b925fe85 /file.h
parentfcdb3784172eb64a6a7c6a79793b6541f54c7189 (diff)
Make the "Save only marked frames" button in the "Save As..." dialog box
sensitive only if there *are* marked frames. svn path=/trunk/; revision=4341
Diffstat (limited to 'file.h')
-rw-r--r--file.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/file.h b/file.h
index 70b471eb96..ae39d1a4b8 100644
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.86 2001/12/04 08:25:55 guy Exp $
+ * $Id: file.h,v 1.87 2001/12/06 02:21:25 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -53,7 +53,8 @@ typedef struct _capture_file {
guint16 cd_t; /* File type of capture file */
int lnk_t; /* Link-layer type with which to save capture */
guint32 vers; /* Version. For tcpdump minor is appended to major */
- int count; /* Packet count */
+ int count; /* Total number of frames */
+ int marked_count; /* Number of marked frames */
gboolean drops_known; /* TRUE if we know how many packets were dropped */
guint32 drops; /* Dropped packets */
guint32 esec; /* Elapsed seconds */
@@ -130,6 +131,16 @@ void unselect_packet(capture_file *);
void unselect_field(void);
+/*
+ * Mark a particular frame in a particular capture.
+ */
+void mark_frame(capture_file *, frame_data *);
+
+/*
+ * Unmark a particular frame in a particular capture.
+ */
+void unmark_frame(capture_file *, frame_data *);
+
/* Moves or copies a file. Returns 0 on failure, 1 on success */
int file_mv(char *from, char *to);