mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 22:23:39 +02:00
Add GZIP header processing to GZlibCompressor/GZlibDecompressor
Add GZlibCompressor:file-info property. If it contains a non-NULL GFileInfo, and the compressor is in GZIP mode, the filename and modification time from the file info are written to the GZIP header in the output data. Add GZlibDeompressor:file-info property. If the decompressor is in GZIP mode, and the GZIP data contains a GZIP header, the filename and modification time are read from it, stored in a GFileInfo, and the file-info property is notified. Bug #617691.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#define __G_ZLIB_COMPRESSOR_H__
|
||||
|
||||
#include <gio/gconverter.h>
|
||||
#include <gio/gfileinfo.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@@ -50,6 +51,10 @@ GType g_zlib_compressor_get_type (void) G_GNUC_CONST;
|
||||
GZlibCompressor *g_zlib_compressor_new (GZlibCompressorFormat format,
|
||||
int level);
|
||||
|
||||
GFileInfo *g_zlib_compressor_get_file_info (GZlibCompressor *compressor);
|
||||
void g_zlib_compressor_set_file_info (GZlibCompressor *compressor,
|
||||
GFileInfo *file_info);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_ZLIB_COMPRESSOR_H__ */
|
||||
|
Reference in New Issue
Block a user