In some dialogs, have *no* auto-default buttons on macOS.
[metze/wireshark/wip.git] / ui / file_dialog.h
1 /* file_dialog.h
2  * Common file dialog definitions
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 2006 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later*/
9
10 #ifndef __FILE_DIALOG_H__
11 #define __FILE_DIALOG_H__
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif /* __cplusplus */
16
17 typedef enum {
18   SAVE,
19   SAVE_WITHOUT_COMMENTS,
20   SAVE_IN_ANOTHER_FORMAT,
21   CANCELLED
22 } check_savability_t;
23
24 typedef enum {
25     export_type_text = 1,
26     export_type_ps,
27     export_type_csv,
28     export_type_psml,
29     export_type_pdml,
30     export_type_carrays,
31     export_type_json
32 } export_type_e;
33
34 typedef struct {
35     gboolean have_times;  /* TRUE if we have start and stop times */
36     double start_time;    /* seconds, with nsec resolution */
37     double stop_time;     /* seconds, with nsec resolution */
38     guint32 records;      /* total number of records */
39     guint32 data_records; /* number of data records */
40 } ws_file_preview_stats;
41
42 typedef enum {
43     PREVIEW_SUCCEEDED,
44     PREVIEW_TIMED_OUT,
45     PREVIEW_READ_ERROR
46 } ws_file_preview_stats_status;
47
48 extern ws_file_preview_stats_status
49 get_stats_for_preview(wtap *wth, ws_file_preview_stats *stats,
50                       int *err, gchar **err_info);
51
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55
56 #endif /* __FILE_DIALOG_H__ */
57
58 /*
59  * Editor modelines
60  *
61  * Local Variables:
62  * c-basic-offset: 4
63  * tab-width: 8
64  * indent-tabs-mode: nil
65  * End:
66  *
67  * ex: set shiftwidth=4 tabstop=8 expandtab:
68  * :indentSize=4:tabSize=8:noTabs=true:
69  */