aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-05-25 21:25:55 +0000
committerGuy Harris <guy@alum.mit.edu>2012-05-25 21:25:55 +0000
commit601403570300c61921515bfc9e1a08a8d65cba5f (patch)
tree47a97b29a7ed76ebbcc7c7b7116ee1387c16fc1c /file.h
parentce9bd398931417602c5884019923f71b7dee4391 (diff)
Use GTK+'s GtkMessageDialog for the questions we ask in the process of
saving files, and run it modal (which we're already doing with the GtkFileChooserDialog); this means less callback-based state machine stuff, simplifying the code paths a bit. If we're saving a file before closing it, don't bother reloading it after saving it. svn path=/trunk/; revision=42855
Diffstat (limited to 'file.h')
-rw-r--r--file.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/file.h b/file.h
index c136e2fc2f..661265c775 100644
--- a/file.h
+++ b/file.h
@@ -206,9 +206,13 @@ gboolean cf_can_save_as(capture_file *cf);
* @param fname the filename to save to
* @param save_format the format of the file to save (libpcap, ...)
* @param compressed whether to gzip compress the file
+ * @param dont_reopen TRUE if it shouldn't reopen and make that file the
+ * current capture file
* @return one of cf_status_t
*/
-cf_status_t cf_save_packets(capture_file * cf, const char *fname, guint save_format, gboolean compressed);
+cf_status_t cf_save_packets(capture_file * cf, const char *fname,
+ guint save_format, gboolean compressed,
+ gboolean dont_reopen);
/**
* Export some or all packets from a capture file to a new file. If there's