aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-03-28 14:39:31 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-03-28 14:39:31 +0000
commitdaa67c79ba2b65c3893ffdf9022c5cf64025c4e7 (patch)
tree7b16c0c3ae319d9a202509eab1524ca7faf9167b /capture.h
parentd11694e340b0a927f129f0bf437dcf637c7d593d (diff)
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
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h16
1 files changed, 12 insertions, 4 deletions
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. */