diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2003-11-15 08:48:14 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2003-11-15 08:48:14 +0000 |
commit | bca18fcf68a29319ef41dfcc579ce4fe2c6b7709 (patch) | |
tree | bb17094d8416a8cf915f0bc8866f8d1b2490a033 /capture.h | |
parent | f4d0c0d9c218d797049118fc2e23fbd21c23a3b2 (diff) | |
download | wireshark-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.h | 35 |
1 files changed, 34 insertions, 1 deletions
@@ -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 "" |