add parameter dcerpc_info to PIDL_dissect_ipv?address()
[wireshark-wip.git] / ui / gtk / capture_file_dlg.h
blobef1342cb1c8814b8f5c3574fb4f7db0a24a81af0
1 /* capture_file_dlg.h
2 * Definitions for dialog boxes for handling files
4 * $Id$
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #ifndef __CAPTURE_FILE_DLG_H__
26 #define __CAPTURE_FILE_DLG_H__
28 /** @file
29 * "Open" / "Close" / "Save" / "Save As" / etc dialog boxes.
30 * @ingroup dialog_group
33 /** If there are unsaved changes, ask the user whether to save them,
34 * discard them, or cancel the operation that would cause the changes
35 * to be lost if not saved.
37 * @param cf the capture_file structure for the file to be closed
38 * @param from_quit TRUE if this is from a quit operation
39 * @param before_what description of the operation, or a null string
40 * for an explicit close operation
42 * @return TRUE if the user didn't cancel the operation, FALSE if they did
44 gboolean do_file_close(capture_file *cf, gboolean from_quit, const char *before_what);
46 /** User requested the "Open" dialog box.
48 * @param widget parent widget
49 * @param data unused
51 void file_open_cmd_cb(GtkWidget *widget, gpointer data);
53 /** User requested the "Merge" dialog box.
55 * @param widget parent widget
56 * @param data unused
58 void file_merge_cmd_cb(GtkWidget *widget, gpointer data);
60 /** User requested the "Save" dialog box.
62 * @param widget parent widget
63 * @param data unused
65 void file_save_cmd_cb(GtkWidget *widget, gpointer data);
67 /** User requested the "Save As" dialog box.
69 * @param widget parent widget
70 * @param data unused
72 void file_save_as_cmd_cb(GtkWidget *widget, gpointer data);
74 /** User requested "Close".
76 * @param widget parent widget
77 * @param data unused
79 void file_close_cmd_cb(GtkWidget *widget, gpointer data);
81 /** User requested the "Export Specified Packets" dialog box.
83 * @param widget parent widget
84 * @param data unused
86 void file_export_specified_packets_cmd_cb(GtkWidget *widget, gpointer data);
88 /** User requested the "Export PDUs to file" dialogue box
89 * and pressed OK to start the export
91 * @param widget parent widget
92 * @param data pointer to internal data used by the export pdu part
94 void file_export_pdu_ok_cb(GtkWidget *widget, gpointer data);
96 /** User requested "Reload".
98 * @param widget parent widget
99 * @param data unused
101 void file_reload_cmd_cb(GtkWidget *widget, gpointer data);
103 /** User requested "Import". Currently only called from the color dialog.
105 * @param widget parent widget
106 * @param data unused
108 void file_color_import_cmd_cb(GtkWidget *widget, gpointer data);
110 /** User requested "Export". Currently only called from the color dialog.
112 * @param widget parent widget
113 * @param data unused
115 void file_color_export_cmd_cb(GtkWidget *widget, gpointer data);
117 #endif /* capture_file_dlg.h */