| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
file_dialog.h
Go to the documentation of this file.
1
12#ifndef __FILE_DIALOG_H__
13#define __FILE_DIALOG_H__
14
15#ifdef __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18
19typedef enum {
20 SAVE,
21 SAVE_WITHOUT_COMMENTS,
22 SAVE_IN_ANOTHER_FORMAT,
23 CANCELLED
24} check_savability_t;
25
26typedef enum {
27 export_type_text = 1,
28 export_type_ps,
29 export_type_csv,
30 export_type_psml,
31 export_type_pdml,
32 export_type_carrays,
33 export_type_json
34} export_type_e;
35
36 typedef struct {
37 bool have_times; /* true if we have start and stop times */
38 double start_time; /* seconds, with nsec resolution */
39 double stop_time; /* seconds, with nsec resolution */
40 uint32_t records; /* total number of records */
41 uint32_t data_records; /* number of data records */
42} ws_file_preview_stats;
43
44typedef enum {
45 PREVIEW_SUCCEEDED,
46 PREVIEW_TIMED_OUT,
47 PREVIEW_READ_ERROR
48} ws_file_preview_stats_status;
49
50extern ws_file_preview_stats_status
51get_stats_for_preview(wtap *wth, ws_file_preview_stats *stats,
52 int *err, char **err_info);
53
54#ifdef __cplusplus
55}
56#endif /* __cplusplus */
57
58#endif /* __FILE_DIALOG_H__ */
ws_file_preview_stats
Definition file_dialog.h:36
wtap
Definition wtap_module.h:58