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.
18 #ifndef __CAPTURE_INFO_H__
19 #define __CAPTURE_INFO_H__
21 #include "capture_opts.h"
22 #include <capchild/capture_session.h>
23 #include <epan/capture_dissectors.h>
27 #endif /* __cplusplus */
29 /** Current Capture info. */
30 typedef struct _capture_info {
32 gpointer ui; /**< user interface handle */
35 packet_counts *counts; /**< protocol specific counters */
36 gint new_packets; /**< packets since last update */
39 typedef struct _info_data {
40 packet_counts counts; /* Packet counting */
41 struct wtap* wtap; /* current wtap file */
42 capture_info ui; /* user interface data */
45 /* new packets arrived - read from wtap, count */
46 extern void capture_info_new_packets(int to_read, info_data_t* cap_info);
48 /** Create the capture info dialog */
50 capture_info_ui_create(capture_info *cinfo, capture_session *cap_session);
52 /** Update the capture info counters in the dialog */
53 extern void capture_info_ui_update(
56 /** Destroy the capture info dialog again */
57 extern void capture_info_ui_destroy(
62 #endif /* __cplusplus */
64 #endif /* capture_info.h */
67 * Editor modelines - http://www.wireshark.org/tools/modelines.html
72 * indent-tabs-mode: nil
75 * vi: set shiftwidth=4 tabstop=8 expandtab:
76 * :indentSize=4:tabSize=8:noTabs=true: