2 * capture info functions
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
14 * Capture info functions.
20 * If we add this to the Qt UI we should modernize the statistics we show.
21 * At the very least we should remove or hide IPX and VINES.
24 #ifndef __CAPTURE_INFO_H__
25 #define __CAPTURE_INFO_H__
27 #include "capture_opts.h"
28 #include <capchild/capture_session.h>
29 #include <epan/capture_dissectors.h>
33 #endif /* __cplusplus */
35 /** Current Capture info. */
38 gpointer ui; /**< user interface handle */
41 packet_counts *counts; /**< protocol specific counters */
42 time_t running_time; /**< running time since last update */
43 gint new_packets; /**< packets since last update */
46 typedef struct _info_data {
47 packet_counts counts; /* Packet counting */
48 struct wtap* wtap; /* current wtap file */
49 capture_info ui; /* user interface data */
52 /* new packets arrived - read from wtap, count */
53 extern void capture_info_new_packets(int to_read, info_data_t* cap_info);
55 /** Create the capture info dialog */
57 capture_info_ui_create(capture_info *cinfo, capture_session *cap_session);
59 /** Update the capture info counters in the dialog */
60 extern void capture_info_ui_update(
63 /** Destroy the capture info dialog again */
64 extern void capture_info_ui_destroy(
69 #endif /* __cplusplus */
71 #endif /* capture_info.h */
74 * Editor modelines - http://www.wireshark.org/tools/modelines.html
79 * indent-tabs-mode: nil
82 * vi: set shiftwidth=4 tabstop=8 expandtab:
83 * :indentSize=4:tabSize=8:noTabs=true: