aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-12-04 02:04:18 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-12-04 02:04:18 +0000
commite829856c0c03666c5b9b917fba4716b88fd580e6 (patch)
treee287961aad0a7a10a11809797eec33b4c5fadd30 /capture_sync.h
parentf856dbafa830a562da34b1aaf636fb941aa5a7c9 (diff)
move the complete functionality of the capture info dialog from capture_loop.c to capture_info.c and call it from capture.c (instead of capture_loop.c).
This way, the capture child don't need to now any of the packet_counter things (no epan/packet.h and all alike). Currently the capture_info code will always open another wiretap file instance to build it's own counter values. This isn't optimized for now (next step: use data from cf_continue_tail() somehow). svn path=/trunk/; revision=16669
Diffstat (limited to 'capture_sync.h')
-rw-r--r--capture_sync.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/capture_sync.h b/capture_sync.h
index d734641d41..6e8dea1a09 100644
--- a/capture_sync.h
+++ b/capture_sync.h
@@ -38,6 +38,25 @@
#define CHILD_NAME "ethereal-capture"
+/* Size of buffer to hold decimal representation of
+ signed/unsigned 64-bit int */
+#define SP_DECISIZE 20
+
+/*
+ * Indications sent out on the sync pipe (from child to parent).
+ */
+#define SP_FILE 'F' /* the name of the recently opened file */
+#define SP_ERROR_MSG 'E' /* error message */
+#define SP_PACKET_COUNT 'P' /* count of packets captured since last message */
+#define SP_DROPS 'D' /* count of packets dropped in capture */
+/*
+ * Win32 only: Indications sent out on the signal pipe (from parent to child)
+ * (UNIX-like sends signals for this)
+ */
+#define SP_QUIT 'Q' /* "gracefully" capture quit message (SIGUSR1) */
+
+
+
/**
* Start a new capture session.
* Create a capture child which is doing the real capture work.