3 * Declarations of platform-dependent capture info functions.
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
15 * Capture info functions.
19 #ifndef __CAPTURE_INFO_H__
20 #define __CAPTURE_INFO_H__
22 #include "capture_opts.h"
23 #include <capture/capture_session.h>
24 #include <epan/capture_dissectors.h>
28 #endif /* __cplusplus */
30 /** Current Capture info. */
31 typedef struct _capture_info
{
33 void * ui
; /**< user interface handle */
36 packet_counts
*counts
; /**< protocol specific counters */
37 int new_packets
; /**< packets since last update */
40 typedef struct _info_data
{
41 packet_counts counts
; /* Packet counting */
42 capture_info ui
; /* user interface data */
45 /** Create the capture info dialog */
47 capture_info_ui_create(capture_info
*cinfo
, capture_session
*cap_session
);
49 /** Update the capture info counters in the dialog */
50 extern void capture_info_ui_update(
53 /** Destroy the capture info dialog again */
54 extern void capture_info_ui_destroy(
59 #endif /* __cplusplus */
61 #endif /* ui/capture_info.h */