aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-01 21:52:03 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-01 21:52:03 +0000
commit60f385ac019e440d7892bd83c7ecfe6787d6b02a (patch)
treea5d9efd365ced045a3f1be17adab3464cb1d7724 /capture.c
parent056ae6eb5e277c48141771482fd01c6d7ba2a62d (diff)
downloadwireshark-60f385ac019e440d7892bd83c7ecfe6787d6b02a.tar.gz
wireshark-60f385ac019e440d7892bd83c7ecfe6787d6b02a.tar.bz2
wireshark-60f385ac019e440d7892bd83c7ecfe6787d6b02a.zip
Move the definitions of "sync_mode", "sync_pipe", "fork_mode",
"quit_after_cap", and "capture_child" from "gtk/main.c" to "capture.c", so that the definitions don't have to be duplicated in "main.c" for other UIs if, as, and when we do versions of Ethereal with other UIs. svn path=/trunk/; revision=746
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/capture.c b/capture.c
index 93c6785588..192a26971b 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.74 1999/09/30 06:49:53 guy Exp $
+ * $Id: capture.c,v 1.75 1999/10/01 21:51:55 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -83,6 +83,12 @@
#include "prefs.h"
#include "globals.h"
+int sync_mode; /* fork a child to do the capture, and sync between them */
+int sync_pipe[2]; /* used to sync father */
+int fork_mode; /* fork a child to do the capture */
+int quit_after_cap; /* Makes a "capture only mode". Implies -k */
+gboolean capture_child; /* if this is the child for "-F"/"-S" */
+
static void capture_stop_cb(GtkWidget *, gpointer);
static void capture_pcap_cb(u_char *, const struct pcap_pkthdr *,
const u_char *);