aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-14 19:30:19 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-14 19:30:19 +0000
commite1f8891d00a82c278494258f5cf46e70464dd98c (patch)
treeb0e928dfc37e0d0d13539ee488c669e550936992 /file.h
parent8dd08ed79195d9534e430ec4b105588fd795a929 (diff)
Don't enable "Save As" if you don't have an unsaved live capture file
and there are no formats in which the file can be saved by some means other than copying the raw data; "Save As" isn't a very useful function in that case, and that prevents us from having an empty list of formats in which the file can be saved. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21032 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.h')
-rw-r--r--file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/file.h b/file.h
index 716ea5da99..c5c00b2095 100644
--- a/file.h
+++ b/file.h
@@ -154,6 +154,15 @@ cf_read_status_t cf_continue_tail(capture_file *cf, int to_read, int *err);
cf_read_status_t cf_finish_tail(capture_file *cf, int *err);
/**
+ * Determine whether this capture file (or a range of it) can be saved
+ * (except by copying the raw file data).
+ *
+ * @param cf the capture file to check
+ * @return TRUE if it can be saved, FALSE if it can't
+ */
+gboolean cf_can_save_as(capture_file *cf);
+
+/**
* Save a capture file (or a range of it).
*
* @param cf the capture file to save to