diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-24 05:05:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-24 05:05:29 +0000 |
commit | cf6d9841e37906448ad1a571a648140325efcae0 (patch) | |
tree | 8e14522dbdae5295fd41a236e7f9e49daab36c4e /wiretap/file_wrappers.h | |
parent | 73888ed977e7ba3356d3c5e31c182508d576dfc1 (diff) |
Keep track, in Wiretap, of whether the file is compressed, and provide
an API to fetch that.
When doing "Save" on a compressed file, write it out compressed.
In the Statistics -> Summary dialog and in capinfos, report whether the
file is gzip-compressed.
svn path=/trunk/; revision=42818
Diffstat (limited to 'wiretap/file_wrappers.h')
-rw-r--r-- | wiretap/file_wrappers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/file_wrappers.h b/wiretap/file_wrappers.h index b594a7330b..4ef46fb297 100644 --- a/wiretap/file_wrappers.h +++ b/wiretap/file_wrappers.h @@ -35,6 +35,7 @@ extern gint64 file_skip(FILE_T file, gint64 delta, int *err); extern gint64 file_tell(FILE_T stream); extern gint64 file_tell_raw(FILE_T stream); extern int file_fstat(FILE_T stream, ws_statb64 *statb, int *err); +extern gboolean file_iscompressed(FILE_T stream); extern int file_read(void *buf, unsigned int count, FILE_T file); extern int file_getc(FILE_T stream); extern char *file_gets(char *buf, int len, FILE_T stream); |