aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-12 21:44:55 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-12 21:44:55 +0000
commitc5d19cf8ae3b4dbb00033fb8600046445648dbe1 (patch)
tree8e6ac01a654fb5dfb8725e1c07c3fbc683fdab11 /capture.h
parente97badbab5d67ed1c294b4cf96b65851395eb767 (diff)
capture engine:
add a new feature to clear the currently captured packets and restart the capture with the previous parameters various code cleanup and minor bugfixes Win32: use millisecond resolution in capture_loop, to smooth screen update a bit (500ms instead of 1000ms) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14059 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/capture.h b/capture.h
index fcaaf2527a..98cafb1cc7 100644
--- a/capture.h
+++ b/capture.h
@@ -53,9 +53,10 @@ typedef struct capture_options_tag {
gchar *save_file; /**< the capture file name */
/* GUI related */
- gboolean real_time_mode;/**< Update list of packets in real time */
- gboolean show_info; /**< show the info dialog */
+ gboolean real_time_mode; /**< Update list of packets in real time */
+ gboolean show_info; /**< show the info dialog */
gboolean quit_after_cap; /** Makes a "capture only mode". Implies -k */
+ gboolean restart; /**< restart after closing is done */
/* multiple files (and ringbuffer) */
gboolean multi_files_on; /**< TRUE if ring buffer in use */
@@ -106,6 +107,9 @@ extern gboolean capture_start(capture_options *capture_opts);
/** Stop a capture session (usually from a menu item). */
extern void capture_stop(capture_options *capture_opts);
+/** Clear the current captured packets and start again. */
+extern void capture_clear(capture_options *capture_opts);
+
/** Terminate the capture child cleanly when exiting. */
extern void capture_kill_child(capture_options *capture_opts);