summaryrefslogtreecommitdiff
path: root/capture.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2003-11-15 08:48:14 +0000
committerUlf Lamping <ulf.lamping@web.de>2003-11-15 08:48:14 +0000
commitbca18fcf68a29319ef41dfcc579ce4fe2c6b7709 (patch)
treebb17094d8416a8cf915f0bc8866f8d1b2490a033 /capture.h
parentf4d0c0d9c218d797049118fc2e23fbd21c23a3b2 (diff)
downloadwireshark-bca18fcf68a29319ef41dfcc579ce4fe2c6b7709.tar.gz
seperated capture dialog from capture.c and put into new gtk/capture_info_dlg.c
svn path=/trunk/; revision=8968
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h35
1 files changed, 34 insertions, 1 deletions
diff --git a/capture.h b/capture.h
index 609220dc62..2826bac7c0 100644
--- a/capture.h
+++ b/capture.h
@@ -1,7 +1,7 @@
/* capture.h
* Definitions for packet capture windows
*
- * $Id: capture.h,v 1.37 2003/11/01 02:30:14 guy Exp $
+ * $Id: capture.h,v 1.38 2003/11/15 08:47:28 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -73,6 +73,39 @@ void capture_stop(void);
/* Terminate the capture child cleanly when exiting. */
void kill_capture_child(void);
+
+/* XXX: improve this macro (put something like this into epan/packet.h?) */
+#define CAPTURE_PACKET_COUNTS sizeof(packet_counts) / sizeof (gint)
+
+typedef struct {
+ /* handles */
+ gpointer callback_data; /* capture callback handle */
+ gpointer ui; /* user interfaces own handle */
+
+ /* capture info */
+ packet_counts *counts; /* protocol specific counters */
+ time_t running_time; /* running time since last update */
+ gint new_packets; /* packets since last update */
+} capture_info;
+
+
+/* create the capture info dialog */
+extern void capture_info_create(
+capture_info *cinfo);
+
+/* Update the capture info counters in the dialog */
+extern void capture_info_update(
+capture_info *cinfo);
+
+/* destroy the capture info dialog again */
+extern void capture_info_destroy(
+capture_info *cinfo);
+
+/* ui calls this, when user wants to stop capturing */
+extern void capture_ui_stop_callback(
+gpointer callback_data);
+
+
#endif /* HAVE_LIBPCAP */
#define EMPTY_FILTER ""