Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ui
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
16
extern
"C"
{
17
#endif
/* __cplusplus */
18
19
typedef
enum
{
20
SAVE,
21
SAVE_WITHOUT_COMMENTS,
22
SAVE_IN_ANOTHER_FORMAT,
23
CANCELLED
24
} check_savability_t;
25
26
typedef
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
44
typedef
enum
{
45
PREVIEW_SUCCEEDED,
46
PREVIEW_TIMED_OUT,
47
PREVIEW_READ_ERROR
48
} ws_file_preview_stats_status;
49
58
extern
ws_file_preview_stats_status
59
get_stats_for_preview
(
wtap
*wth,
ws_file_preview_stats
*stats,
60
int
*err,
char
**err_info);
61
62
#ifdef __cplusplus
63
}
64
#endif
/* __cplusplus */
65
66
#endif
/* __FILE_DIALOG_H__ */
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
Definition
file_dialog.h:36
wtap
Definition
wtap_module.h:58
Generated by
1.9.8