From 831c54c4f5b15e8d8fce18bd6f6d08974d689d56 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Tue, 20 Sep 2005 08:42:35 +0000 Subject: add two new callbacks: cf_cb_file_closing (called before closing a capture file) cf_cb_file_closed will be called afterwards, but both only if a file is really closed as cf_close is called more often ... If we are closing large capture files (~20MB), the screen looks ugly while the file is closed. Change this so the screen will immediately go back to initial state and a dialog (without buttons) is shown that the file is currently closed. As the operation which takes most of the time to close the file is a single eth_clist_clear call, we can't use a progress bar here. cf_cb_live_capture_stopping: called when the user wants to stop the capture (toolbar or menu clicked). At least on Win32, the time between this and the actual stop completed can be noticeable (1-2 seconds), so the user doesn't know if the button press did anything at all. Do something similar as above, show a dialog box without buttons to inform that the close is in progress. svn path=/trunk/; revision=15891 --- file.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'file.h') diff --git a/file.h b/file.h index 3eadec354d..f479ff5f6a 100644 --- a/file.h +++ b/file.h @@ -56,6 +56,7 @@ typedef enum { } cf_print_status_t; typedef enum { + cf_cb_file_closing, cf_cb_file_closed, cf_cb_file_read_start, cf_cb_file_read_finished, @@ -66,6 +67,7 @@ typedef enum { cf_cb_live_capture_update_finished, cf_cb_live_capture_fixed_started, cf_cb_live_capture_fixed_finished, + cf_cb_live_capture_stopping, #endif cf_cb_packet_selected, cf_cb_packet_unselected, -- cgit v1.2.3