Lines Matching refs:za
54 zip_source_window(zip_t *za, zip_source_t *src, zip_uint64_t start, zip_uint64_t len) in zip_source_window() argument
56 return _zip_source_window_new(src, start, len, NULL, &za->error); in zip_source_window()
94 _zip_source_set_source_archive(zip_source_t *src, zip_t *za) in _zip_source_set_source_archive() argument
96 src->source_archive = za; in _zip_source_set_source_archive()
97 return _zip_register_source(za, src); in _zip_source_set_source_archive()
219 _zip_deregister_source(zip_t *za, zip_source_t *src) in _zip_deregister_source() argument
223 for (i=0; i<za->nopen_source; i++) { in _zip_deregister_source()
224 if (za->open_source[i] == src) { in _zip_deregister_source()
225 za->open_source[i] = za->open_source[za->nopen_source-1]; in _zip_deregister_source()
226 za->nopen_source--; in _zip_deregister_source()
234 _zip_register_source(zip_t *za, zip_source_t *src) in _zip_register_source() argument
238 if (za->nopen_source+1 >= za->nopen_source_alloc) { in _zip_register_source()
240 n = za->nopen_source_alloc + 10; in _zip_register_source()
241 open_source = (zip_source_t **)realloc(za->open_source, n*sizeof(zip_source_t *)); in _zip_register_source()
243 zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_register_source()
246 za->nopen_source_alloc = n; in _zip_register_source()
247 za->open_source = open_source; in _zip_register_source()
250 za->open_source[za->nopen_source++] = src; in _zip_register_source()