Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / ui / file_dialog.h
blobcd85693cc0fa124279b62ff3dc695e9cb4d94a44
1 /** @file
3 * Common file dialog definitions
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 2006 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __FILE_DIALOG_H__
13 #define __FILE_DIALOG_H__
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
19 typedef enum {
20 SAVE,
21 SAVE_WITHOUT_COMMENTS,
22 SAVE_IN_ANOTHER_FORMAT,
23 CANCELLED
24 } check_savability_t;
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;
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;
44 typedef enum {
45 PREVIEW_SUCCEEDED,
46 PREVIEW_TIMED_OUT,
47 PREVIEW_READ_ERROR
48 } ws_file_preview_stats_status;
50 extern ws_file_preview_stats_status
51 get_stats_for_preview(wtap *wth, ws_file_preview_stats *stats,
52 int *err, char **err_info);
54 #ifdef __cplusplus
56 #endif /* __cplusplus */
58 #endif /* __FILE_DIALOG_H__ */