path: root/cfile.h
diff options
authorGuy Harris <guy@alum.mit.edu>2012-06-20 01:11:01 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-20 01:11:01 +0000
commit06474b43305ecee081506b4d3052933a91f81691 (patch)
treecdb042867e70ffd2aafd3d75fc32b1e4a56b088f /cfile.h
parent75c8dbff83f49260883e7a5b4c74e751da9aa1f7 (diff)
If the file has an SHB comment or any packet comments, and the user
tries to do "Save As" in a format for which we don't support comments (currently, we only support them for pcap-ng), ask whether they want to discard the comments and save anyway or, *if* the file can be saved in a format for which we *do* support comments, they want to save the file in some other format. Keep a count of packet comments so that we don't have to scan all the frame_data structures to determine whether we have any comments. svn path=/trunk/; revision=43392
Diffstat (limited to 'cfile.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/cfile.h b/cfile.h
index 69e83d576b..2d6ca02b8d 100644
--- a/cfile.h
+++ b/cfile.h
@@ -77,6 +77,7 @@ typedef struct _capture_file {
int lnk_t; /* File link-layer type; could be WTAP_ENCAP_PER_PACKET */
GArray *linktypes; /* Array of packet link-layer types */
guint32 count; /* Total number of frames */
+ guint64 packet_comment_count; /* Number of comments in frames (could be >1 per frame... */
guint32 displayed_count; /* Number of displayed frames */
guint32 marked_count; /* Number of marked frames */
guint32 ignored_count; /* Number of ignored frames */