The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.
Please select the desired protocol below to get the URL.
This URL has Read-Only access.
main_repo / capture_info.h @ master
History | View | Annotate | Download (2.32 KB)
1 | f856dbaf | Ulf Lamping | /* capture_info.h
|
---|---|---|---|
2 | * capture info functions
|
||
3 | *
|
||
4 | 89f022b1 | Ronnie Sahlberg | * Wireshark - Network traffic analyzer
|
5 | * By Gerald Combs <gerald@wireshark.org>
|
||
6 | f856dbaf | Ulf Lamping | * Copyright 1998 Gerald Combs
|
7 | *
|
||
8 | * This program is free software; you can redistribute it and/or
|
||
9 | * modify it under the terms of the GNU General Public License
|
||
10 | * as published by the Free Software Foundation; either version 2
|
||
11 | * of the License, or (at your option) any later version.
|
||
12 | *
|
||
13 | * This program is distributed in the hope that it will be useful,
|
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | * GNU General Public License for more details.
|
||
17 | *
|
||
18 | * You should have received a copy of the GNU General Public License
|
||
19 | * along with this program; if not, write to the Free Software
|
||
20 | bf81b42e | Jakub Zawadzki | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
21 | f856dbaf | Ulf Lamping | */
|
22 | |||
23 | |||
24 | /** @file
|
||
25 | 6b178bd4 | Gerald Combs | *
|
26 | f856dbaf | Ulf Lamping | * capture info functions
|
27 | *
|
||
28 | */
|
||
29 | |||
30 | #ifndef __CAPTURE_INFO_H__
|
||
31 | #define __CAPTURE_INFO_H__
|
||
32 | |||
33 | f441b894 | Guy Harris | #include "capture_opts.h" |
34 | b33512b7 | Guy Harris | #include <capchild/capture_session.h> |
35 | f856dbaf | Ulf Lamping | |
36 | 6b178bd4 | Gerald Combs | #ifdef __cplusplus
|
37 | extern "C" { |
||
38 | #endif /* __cplusplus */ |
||
39 | |||
40 | e829856c | Ulf Lamping | /* open the info - init values (wtap, counts), create dialog */
|
41 | 8596d17d | Guy Harris | extern void capture_info_open(capture_session *cap_session); |
42 | e829856c | Ulf Lamping | |
43 | /* new file arrived - (eventually close old wtap), open wtap */
|
||
44 | 8ac0325b | Guy Harris | extern gboolean capture_info_new_file(const char *new_filename); |
45 | e829856c | Ulf Lamping | |
46 | a344c973 | Guy Harris | /* new packets arrived - read from wtap, count */
|
47 | extern void capture_info_new_packets(int to_read); |
||
48 | e829856c | Ulf Lamping | |
49 | /* close the info - close wtap, destroy dialog */
|
||
50 | extern void capture_info_close(void); |
||
51 | f856dbaf | Ulf Lamping | |
52 | |||
53 | |||
54 | /** Current Capture info. */
|
||
55 | typedef struct { |
||
56 | /* handle */
|
||
57 | gpointer ui; /**< user interface handle */
|
||
58 | |||
59 | /* capture info */
|
||
60 | packet_counts *counts; /**< protocol specific counters */
|
||
61 | time_t running_time; /**< running time since last update */
|
||
62 | gint new_packets; /**< packets since last update */
|
||
63 | } capture_info; |
||
64 | |||
65 | |||
66 | /** Create the capture info dialog */
|
||
67 | 8596d17d | Guy Harris | extern void |
68 | capture_info_ui_create(capture_info *cinfo, capture_session *cap_session); |
||
69 | f856dbaf | Ulf Lamping | |
70 | /** Update the capture info counters in the dialog */
|
||
71 | extern void capture_info_ui_update( |
||
72 | capture_info *cinfo); |
||
73 | |||
74 | /** Destroy the capture info dialog again */
|
||
75 | extern void capture_info_ui_destroy( |
||
76 | capture_info *cinfo); |
||
77 | |||
78 | 6b178bd4 | Gerald Combs | #ifdef __cplusplus
|
79 | } |
||
80 | #endif /* __cplusplus */ |
||
81 | f856dbaf | Ulf Lamping | |
82 | #endif /* capture_info.h */ |