diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-09-15 20:37:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-09-15 20:37:37 +0000 |
commit | 673e47d4a9a1a79170bc93b8df23c6ac328bb531 (patch) | |
tree | d1a536772bd6167431c28ecb60a637804f762b3b /cfile.h | |
parent | 4339a40c036664a30485c50692a9d9dba5419bbe (diff) | |
download | wireshark-673e47d4a9a1a79170bc93b8df23c6ac328bb531.tar.gz wireshark-673e47d4a9a1a79170bc93b8df23c6ac328bb531.tar.bz2 wireshark-673e47d4a9a1a79170bc93b8df23c6ac328bb531.zip |
Keep a "display name" as part of a capture_file structure; for live
capture temporary files, it's "<capture", and for saved capture files,
it's the last component of the pathname of the file. Use that in
various places when displaying the file name.
svn path=/trunk/; revision=8474
Diffstat (limited to 'cfile.h')
-rw-r--r-- | cfile.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* cfile.h * capture_file definition & GUI-independent manipulation * - * $Id: cfile.h,v 1.3 2003/08/29 04:03:45 guy Exp $ + * $Id: cfile.h,v 1.4 2003/09/15 20:37:35 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -47,6 +47,7 @@ typedef struct _capture_file { gchar *filename; /* Name of capture file */ gboolean is_tempfile; /* Is capture file a temporary file? */ gboolean user_saved;/* If capture file is temporary, has it been saved by user yet? */ + gchar *displayname; /* Name used when displaying */ long f_len; /* Length of capture file */ guint16 cd_t; /* File type of capture file */ int lnk_t; /* Link-layer type with which to save capture */ |