Revert "cmake: fix version check for c-ares and gnuTLS"
[metze/wireshark/wip.git] / capture_info.h
1 /* capture_info.h
2  * capture info functions
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10
11
12 /** @file
13  *
14  * Capture info functions.
15  *
16  */
17
18 #ifndef __CAPTURE_INFO_H__
19 #define __CAPTURE_INFO_H__
20
21 #include "capture_opts.h"
22 #include <capchild/capture_session.h>
23 #include <epan/capture_dissectors.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28
29 /** Current Capture info. */
30 typedef struct _capture_info {
31     /* handle */
32     gpointer        ui;             /**< user interface handle */
33
34     /* capture info */
35     packet_counts   *counts;        /**< protocol specific counters */
36     gint            new_packets;    /**< packets since last update */
37 } capture_info;
38
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 */
43 } info_data_t;
44
45 /* new packets arrived - read from wtap, count */
46 extern void capture_info_new_packets(int to_read, info_data_t* cap_info);
47
48 /** Create the capture info dialog */
49 extern void
50 capture_info_ui_create(capture_info *cinfo, capture_session *cap_session);
51
52 /** Update the capture info counters in the dialog */
53 extern void capture_info_ui_update(
54 capture_info    *cinfo);
55
56 /** Destroy the capture info dialog again */
57 extern void capture_info_ui_destroy(
58 capture_info    *cinfo);
59
60 #ifdef __cplusplus
61 }
62 #endif /* __cplusplus */
63
64 #endif /* capture_info.h */
65
66 /*
67  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
68  *
69  * Local variables:
70  * c-basic-offset: 4
71  * tab-width: 8
72  * indent-tabs-mode: nil
73  * End:
74  *
75  * vi: set shiftwidth=4 tabstop=8 expandtab:
76  * :indentSize=4:tabSize=8:noTabs=true:
77  */