aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-23 06:27:27 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-23 06:27:27 +0000
commit12d3278d0b23873b407621268b549f9161eee419 (patch)
tree8a390a7bbfd89ee2b55f021006fe10ffa98ff393 /capture.h
parent560e64cb7308d8a509bbfa05140e8213cdce9fb5 (diff)
Move the toolkit-independent code to create a temporary capture file,
and to fork off and run a separate copy of "ethereal" for "-S" and "-F" captures or just call "capture()" otherwise, out of "gtk/capture_dlg.c" and into a routine in "capture.c". If the attempt to create said temporary capture file fails, pop up a dialog box and don't do the capture. Have the child capture process send a message upstream after it either successfully starts the capture and syncs out the header of the capture file, or fails to start the capture; the message indicates whether it succeeded or failed, and, if it failed, includes a failure message. This: avoids the use of a signal, and thus means we don't have to worry about whether to capture the signal, or whether to start or stop capturing depending on whether this particular capture is in sync mode or not; lets us pop up the message box for the error in the parent process if we're in sync mode, rather than doing it in the child, which didn't work well. Add a check button to the Capture/Start dialog box, so that we can control, for each capture, whether it's to be done in sync mode or not. svn path=/trunk/; revision=708
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/capture.h b/capture.h
index 61cf251a96..52a23bf68f 100644
--- a/capture.h
+++ b/capture.h
@@ -1,7 +1,7 @@
/* capture.h
* Definitions for packet capture windows
*
- * $Id: capture.h,v 1.14 1999/09/09 03:31:50 gram Exp $
+ * $Id: capture.h,v 1.15 1999/09/23 06:27:19 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -48,6 +48,7 @@
#define DLT_PPP_BSDOS 14
#endif
+void do_capture(void);
void capture(void);
#endif /* HAVE_LIBPCAP */