Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
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 
11 #ifndef __FILE_DIALOG_H__
12 #define __FILE_DIALOG_H__
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17 
18 typedef enum {
19  SAVE,
20  SAVE_WITHOUT_COMMENTS,
21  SAVE_IN_ANOTHER_FORMAT,
22  CANCELLED
23 } check_savability_t;
24 
25 typedef enum {
26  export_type_text = 1,
27  export_type_ps,
28  export_type_csv,
29  export_type_psml,
30  export_type_pdml,
31  export_type_carrays,
32  export_type_json
33 } export_type_e;
34 
35 typedef struct {
36  gboolean have_times; /* TRUE if we have start and stop times */
37  double start_time; /* seconds, with nsec resolution */
38  double stop_time; /* seconds, with nsec resolution */
39  guint32 records; /* total number of records */
40  guint32 data_records; /* number of data records */
42 
43 typedef enum {
44  PREVIEW_SUCCEEDED,
45  PREVIEW_TIMED_OUT,
46  PREVIEW_READ_ERROR
47 } ws_file_preview_stats_status;
48 
49 extern ws_file_preview_stats_status
50 get_stats_for_preview(wtap *wth, ws_file_preview_stats *stats,
51  int *err, gchar **err_info);
52 
53 #ifdef __cplusplus
54 }
55 #endif /* __cplusplus */
56 
57 #endif /* __FILE_DIALOG_H__ */
58 
59 /*
60  * Editor modelines
61  *
62  * Local Variables:
63  * c-basic-offset: 4
64  * tab-width: 8
65  * indent-tabs-mode: nil
66  * End:
67  *
68  * ex: set shiftwidth=4 tabstop=8 expandtab:
69  * :indentSize=4:tabSize=8:noTabs=true:
70  */
Definition: wtap-int.h:34
Definition: file_dialog.h:35