aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-05 06:52:18 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-05 06:52:18 +0000
commit9fe3d4b4f356084e8631a972e0217f02e344ff3e (patch)
treedb60aec8b9e377d0ec0b77768b5c2b872d87cb64 /file.h
parent1d27ce5d9962520e0d37f9a424f02b3448934207 (diff)
If we do a Save or Save As with a move, don't reread the capture file,
just tweak the elements in the capture_file structure as necessary and poke the UI to update stuff such as the windows title. If we do a Save or Save As with a copy, don't reread the capture file, just close the old wtap, open a wtap for the copy, and tweak the elements in the capture_file structure as necessary and poke the UI to update stuff such as the windows title. Otherwise, don't do a full read-and-dissect pass on the capture file, just close the old wtap, open a wtap for the new file, tweak the elements in the capture_file structure as necessary and poke the UI to update stuff such as the windows title, and rescan the file to update the packet offsets (and cause Wiretap to regenerate, for a gzipped file, the information needed to support fast random access to the gzipped file). This should speed up Save and Save As a bit, as well as removing some glitches in the UI (e.g., you won't see the packet list disappear and reappear). svn path=/trunk/; revision=43101
Diffstat (limited to 'file.h')
-rw-r--r--file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.h b/file.h
index b40a642d91..08c146a845 100644
--- a/file.h
+++ b/file.h
@@ -72,6 +72,9 @@ typedef enum {
cf_cb_file_read_finished,
cf_cb_file_reload_started,
cf_cb_file_reload_finished,
+ cf_cb_file_rescan_started,
+ cf_cb_file_rescan_finished,
+ cf_cb_file_fast_save_finished,
cf_cb_packet_selected,
cf_cb_packet_unselected,
cf_cb_field_unselected,