1 .TH "ZIP_SOURCE_ZIP" "3" "August 2, 2014" "NiH" "Library Functions Manual"
6 \- create data source from zip file
10 \fB#include <zip.h>\fR
15 \fBzip_source_zip\fR(\fIzip_t\ *archive\fR, \fIzip_t\ *srcarchive\fR, \fIzip_uint64_t\ srcidx\fR, \fIzip_flags_t\ flags\fR, \fIzip_uint64_t\ start\fR, \fIzip_int64_t\ len\fR);
19 \fBzip_source_zip\fR()
20 creates a zip source from a file in a zip archive.
23 argument is the (open) zip archive containing the source zip file
29 will be used in the zip_source.
32 is 0 or \-1, the rest of the file, starting from
39 is \-1, the whole file will be copied without decompressing it.
43 \fRZIP_FL_UNCHANGED\fR
44 Try to get the original data without any changes that may have been
49 \fRZIP_FL_RECOMPRESS\fR
50 When adding the data from
52 re-compress it using the current settings instead of copying the
55 Upon successful completion, the created source is returned.
58 is returned and the error code in
60 is set to indicate the error.
62 \fBzip_source_zip\fR()
65 [\fRZIP_ER_CHANGED\fR]
66 Unchanged data was requested, but it is not available.
77 Required memory could not be allocated.
80 Additionally, it can return all error codes from
81 \fBzip_stat_index\fR()
83 \fBzip_fopen_index\fR().
91 Dieter Baron <\fIdillo@nih.at\fR>
93 Thomas Klausner <\fItk@giga.or.at\fR>