diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-14 19:30:19 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-14 19:30:19 +0000 |
commit | e1f8891d00a82c278494258f5cf46e70464dd98c (patch) | |
tree | b0e928dfc37e0d0d13539ee488c669e550936992 /file.h | |
parent | 8dd08ed79195d9534e430ec4b105588fd795a929 (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.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 |