1 .TH "ZIP_SOURCE_ZIP" "3" "December 18, 2017" "NiH" "Library Functions Manual"
6 \- create data source from zip file
10 \fB#include <zip.h>\fR
16 \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);
20 \fBzip_source_zip\fR()
21 creates a zip source from a file in a zip archive.
24 argument is the (open) zip archive containing the source zip file
30 will be used in the zip_source.
33 is 0 or \-1, the rest of the file, starting from
40 is \-1, the whole file will be copied without decompressing it.
44 \fRZIP_FL_UNCHANGED\fR
45 Try to get the original data without any changes that may have been
50 \fRZIP_FL_RECOMPRESS\fR
51 When adding the data from
53 re-compress it using the current settings instead of copying the
56 Upon successful completion, the created source is returned.
59 is returned and the error code in
61 is set to indicate the error.
63 \fBzip_source_zip\fR()
66 [\fRZIP_ER_CHANGED\fR]
67 Unchanged data was requested, but it is not available.
78 Required memory could not be allocated.
81 Additionally, it can return all error codes from
82 \fBzip_stat_index\fR()
84 \fBzip_fopen_index\fR().
92 \fBzip_source_zip\fR()
93 was added in libzip 1.0.
95 Dieter Baron <\fIdillo@nih.at\fR>
97 Thomas Klausner <\fItk@giga.or.at\fR>