diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-12 21:44:55 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-12 21:44:55 +0000 |
commit | 7e9cedfed81ac84ac28b5f48e36c843025abe2c8 (patch) | |
tree | 8e6ac01a654fb5dfb8725e1c07c3fbc683fdab11 /capture.h | |
parent | fcb74124f8072024a1608d7a65ffffa79f3832e7 (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)
svn path=/trunk/; revision=14059
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |