Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/capture_info.h
Go to the documentation of this file.
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 
18 /*
19  * GTK+ only.
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.
22  */
23 
24 #ifndef __CAPTURE_INFO_H__
25 #define __CAPTURE_INFO_H__
26 
27 #include "capture_opts.h"
28 #include <capchild/capture_session.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34 
36 typedef struct {
37  /* handle */
38  gpointer ui;
40  /* capture info */
42  time_t running_time;
43  gint new_packets;
44 } capture_info;
45 
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 */
50 } info_data_t;
51 
52 /* new packets arrived - read from wtap, count */
53 extern void capture_info_new_packets(int to_read, info_data_t* cap_info);
54 
56 extern void
58 
60 extern void capture_info_ui_update(
61 capture_info *cinfo);
62 
64 extern void capture_info_ui_destroy(
65 capture_info *cinfo);
66 
67 #ifdef __cplusplus
68 }
69 #endif /* __cplusplus */
70 
71 #endif /* capture_info.h */
72 
73 /*
74  * Editor modelines - http://www.wireshark.org/tools/modelines.html
75  *
76  * Local variables:
77  * c-basic-offset: 4
78  * tab-width: 8
79  * indent-tabs-mode: nil
80  * End:
81  *
82  * vi: set shiftwidth=4 tabstop=8 expandtab:
83  * :indentSize=4:tabSize=8:noTabs=true:
84  */
void capture_info_ui_update(capture_info *cinfo)
Definition: capture_info_dialog.cpp:34
Definition: wtap-int.h:34
packet_counts * counts
Definition: capture_info.h:41
Definition: capture_info.h:46
gpointer ui
Definition: capture_info.h:38
Definition: capture_dissectors.h:25
gint new_packets
Definition: capture_info.h:43
void capture_info_ui_create(capture_info *cinfo, capture_session *cap_session)
Definition: capture_info_dialog.cpp:24
void capture_info_ui_destroy(capture_info *cinfo)
Definition: capture_info_dialog.cpp:41
Definition: capture_info.h:36
time_t running_time
Definition: capture_info.h:42
Definition: capture_session.h:63