1 .TH "ZIP_SET_FILE_COMPRESSION" "3" "May 1, 2012" "NiH" "Library Functions Manual"
5 \fBzip_set_file_compression\fR
6 \- set compression method for file in zip
10 \fB#include <zip.h>\fR
15 \fBzip_set_file_compression\fR(\fIzip_t\ *archive\fR, \fIzip_uint64_t\ index\fR, \fIzip_int32_t\ comp\fR, \fIzip_uint32_t\ comp_flags\fR);
19 \fBzip_set_file_compression\fR()
20 function sets the compression method for the file at position
24 with the compression method specific
28 is the same as returned by
32 argument, currently only the following values are supported:
35 default compression; currently the same as
39 Store the file uncompressed.
42 Deflate the file with the
44 algorithm and default options
48 argument is currently ignored.
50 The current compression method for a file in a zip archive can be
54 Upon successful completion 0 is returned.
55 Otherwise, \-1 is returned and the error information in
57 is set to indicate the error.
59 \fBzip_set_file_compression\fR()
64 is not a valid file index in
66 or the argument combination is invalid.
68 [\fRZIP_ER_COMPNOTSUPP\fR]
69 Unsupported compression method requested.
72 Read-only zip file, no changes allowed.
77 Dieter Baron <\fIdillo@nih.at\fR>
79 Thomas Klausner <\fItk@giga.or.at\fR>