diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-03-14 19:30:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-03-14 19:30:19 +0000 |
commit | 082282b6f400e66592006d5a1c38641f2d06cf1e (patch) | |
tree | b0e928dfc37e0d0d13539ee488c669e550936992 /file.h | |
parent | 50bb064108bcab0a2047d2e93d081100e7fef7d2 (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.
svn path=/trunk/; revision=21032
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |