- Move setting _U_ into config.h, because
[obnox/wireshark/wip.git] / capture_info.h
index 02e1f210aaa847e84d94e01130f545282ae3f539..0fd08cdd7b302227f7ddc8bc3fded30c1a02561c 100644 (file)
@@ -3,8 +3,8 @@
  *
  * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
@@ -24,7 +24,7 @@
 
 
 /** @file
- *  
+ *
  * capture info functions
  *
  */
 #ifndef __CAPTURE_INFO_H__
 #define __CAPTURE_INFO_H__
 
+#include "capture_opts.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* open the info - init values (wtap, counts), create dialog */
+extern void capture_info_open(capture_options *capture_opts);
+
+/* new file arrived - (eventually close old wtap), open wtap */
+extern gboolean capture_info_new_file(const char *new_filename);
+
+/* new packets arrived - read from wtap, count */
+extern void capture_info_new_packets(int to_read);
 
-extern void capture_info_init(packet_counts *counts);
+/* close the info - close wtap, destroy dialog */
+extern void capture_info_close(void);
 
-extern void capture_info_packet(
-packet_counts *counts, gint wtap_linktype, const u_char *pd, guint32 caplen, union wtap_pseudo_header pseudo_header);
 
 
 /** Current Capture info. */
@@ -54,7 +67,7 @@ typedef struct {
 /** Create the capture info dialog */
 extern void capture_info_ui_create(
 capture_info    *cinfo,
-gchar           *iface);
+capture_options        *capture_opts);
 
 /** Update the capture info counters in the dialog */
 extern void capture_info_ui_update(
@@ -64,5 +77,8 @@ capture_info    *cinfo);
 extern void capture_info_ui_destroy(
 capture_info    *cinfo);
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
 
 #endif /* capture_info.h */