| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
file_dialog.h
Go to the documentation of this file.
1
11
12#ifndef __FILE_DIALOG_H__
13#define __FILE_DIALOG_H__
14
15#ifdef __cplusplus
16 extern "C" {
17#endif /* __cplusplus */
18
22 typedef enum {
23 SAVE,
24 SAVE_WITHOUT_COMMENTS,
25 SAVE_IN_ANOTHER_FORMAT,
26 CANCELLED
27} check_savability_t;
28
32 typedef enum {
33 export_type_text = 1,
34 export_type_ps,
35 export_type_csv,
36 export_type_psml,
37 export_type_pdml,
38 export_type_carrays,
39 export_type_json
40} export_type_e;
41
45 typedef struct {
46 bool have_times;
47 double start_time;
48 double stop_time;
49 uint32_t records;
50 uint32_t data_records;
51} ws_file_preview_stats;
52
56 typedef enum {
57 PREVIEW_SUCCEEDED,
58 PREVIEW_TIMED_OUT,
59 PREVIEW_READ_ERROR
60} ws_file_preview_stats_status;
61
70 extern ws_file_preview_stats_status
71 get_stats_for_preview(wtap *wth, ws_file_preview_stats *stats,
72 int *err, char **err_info);
73
74#ifdef __cplusplus
75}
76#endif /* __cplusplus */
77
78#endif /* __FILE_DIALOG_H__ */
check_savability_t
check_savability_t
Outcome of a "check if savable" prompt when closing or overwriting a capture file.
Definition file_dialog.h:22
CANCELLED
@ CANCELLED
Definition file_dialog.h:26
SAVE_IN_ANOTHER_FORMAT
@ SAVE_IN_ANOTHER_FORMAT
Definition file_dialog.h:25
SAVE
@ SAVE
Definition file_dialog.h:23
SAVE_WITHOUT_COMMENTS
@ SAVE_WITHOUT_COMMENTS
Definition file_dialog.h:24
export_type_e
export_type_e
Output format for packet data export operations.
Definition file_dialog.h:32
export_type_json
@ export_type_json
Definition file_dialog.h:39
export_type_pdml
@ export_type_pdml
Definition file_dialog.h:37
export_type_csv
@ export_type_csv
Definition file_dialog.h:35
export_type_ps
@ export_type_ps
Definition file_dialog.h:34
export_type_psml
@ export_type_psml
Definition file_dialog.h:36
export_type_text
@ export_type_text
Definition file_dialog.h:33
export_type_carrays
@ export_type_carrays
Definition file_dialog.h:38
ws_file_preview_stats_status
ws_file_preview_stats_status
Return status for a capture file preview statistics scan.
Definition file_dialog.h:56
PREVIEW_SUCCEEDED
@ PREVIEW_SUCCEEDED
Definition file_dialog.h:57
PREVIEW_READ_ERROR
@ PREVIEW_READ_ERROR
Definition file_dialog.h:59
PREVIEW_TIMED_OUT
@ PREVIEW_TIMED_OUT
Definition file_dialog.h:58
get_stats_for_preview
ws_file_preview_stats_status get_stats_for_preview(wtap *wth, ws_file_preview_stats *stats, int *err, char **err_info)
Retrieves statistics for file preview.
Definition file_dialog.c:26
ws_file_preview_stats
Summary statistics gathered during a capture file preview scan.
Definition file_dialog.h:45
ws_file_preview_stats::stop_time
double stop_time
Definition file_dialog.h:48
ws_file_preview_stats::records
uint32_t records
Definition file_dialog.h:49
ws_file_preview_stats::have_times
bool have_times
Definition file_dialog.h:46
ws_file_preview_stats::start_time
double start_time
Definition file_dialog.h:47
ws_file_preview_stats::data_records
uint32_t data_records
Definition file_dialog.h:50
wtap
Definition wtap_module.h:58