diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-29 14:51:52 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-29 14:51:52 +0000 |
commit | a48744a84b72939fd4958421fee4ae0cb1991ba8 (patch) | |
tree | 1870e4883021400841c6895227fca301b063b71a /file.c | |
parent | 614a46f36e7eeebf45f01441dc139e7e9e78abbb (diff) |
add a new feature: list the files of a "File Set" (set of files generated by capturing "Multiple Files"/ringbuffer) and jump from one file of it to the next/previous one
svn path=/trunk/; revision=14231
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -69,6 +69,7 @@ #include "packet-range.h" #include "print.h" #include "file.h" +#include "fileset.h" #include "util.h" #include "merge.h" #include "alert_box.h" @@ -177,6 +178,7 @@ cf_open(capture_file *cf, const char *fname, gboolean is_tempfile, int *err) int fd; struct stat cf_stat; + wth = wtap_open_offline(fname, err, &err_info, TRUE); if (wth == NULL) goto fail; @@ -238,6 +240,8 @@ cf_open(capture_file *cf, const char *fname, gboolean is_tempfile, int *err) G_ALLOC_AND_FREE); g_assert(cf->plist_chunk); + fileset_file_opened(fname); + return CF_OK; fail: @@ -245,6 +249,7 @@ fail: return CF_ERROR; } + /* * Reset the state for the currently closed file, but don't do the * UI callbacks; this is for use in "cf_open()", where we don't @@ -305,6 +310,8 @@ cf_reset_state(capture_file *cf) /* We have no file open. */ cf->state = FILE_CLOSED; + + fileset_file_closed(); } /* Reset everything to a pristine state */ |