From daa67c79ba2b65c3893ffdf9022c5cf64025c4e7 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Mon, 28 Mar 2005 14:39:31 +0000 Subject: a lot more capture engine code cleanup most notably: - moved opening of safe_file to the capture child (capture_loop.c) - removed save_file_fd from capture_opts (no longer need to have it global) svn path=/trunk/; revision=13953 --- capture.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'capture.h') diff --git a/capture.h b/capture.h index 76e60ecf9f..1fb9e0d697 100644 --- a/capture.h +++ b/capture.h @@ -52,7 +52,6 @@ typedef struct capture_options_tag { "use default" */ gboolean capture_child; /**< True if this is the child for "-S" */ gchar *save_file; /**< the capture file name */ - int save_file_fd; /**< File descriptor for saved file */ /* GUI related */ gboolean sync_mode; /**< Fork a child to do the capture, @@ -105,10 +104,19 @@ capture_opts_add_opt(capture_options *capture_opts, const char *appname, int opt extern gboolean do_capture(capture_options *capture_opts); /** - * Read in the newly captured data into the capture_file. + * Capture child told us, we have a new (or the first) capture file. */ -extern gboolean capture_read(capture_options *capture_opts, gboolean is_tempfile, gboolean drops_known, -guint32 drops); +extern gboolean capture_input_new_file(capture_options *capture_opts, gchar *new_file); + +/** + * Capture child told us, we have new packets to read. + */ +extern void capture_input_new_packets(capture_options *capture_opts, int to_read); + +/** + * Capture child closed it's side ot the pipe, do the required cleanup. + */ +extern void capture_input_closed(capture_options *capture_opts); /** Do the low-level work of a capture (start the capture child). * Returns TRUE if it succeeds, FALSE otherwise. */ -- cgit v1.2.3