Lines Matching refs:src
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()
61 _zip_source_window_new(zip_source_t *src, zip_uint64_t start, zip_uint64_t length, zip_stat_t *st, … in _zip_source_window_new() argument
65 if (src == NULL || start + length < start) { in _zip_source_window_new()
79 …ctx->supports = (zip_source_supports(src) & ZIP_SOURCE_SUPPORTS_SEEKABLE) | (zip_source_make_comma… in _zip_source_window_new()
89 return zip_source_layered_create(src, window_read, ctx, error); in _zip_source_window_new()
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()
103 _zip_source_invalidate(zip_source_t *src) in _zip_source_invalidate() argument
105 src->source_closed = 1; in _zip_source_invalidate()
107 if (zip_error_code_zip(&src->error) == ZIP_ER_OK) { in _zip_source_invalidate()
108 zip_error_set(&src->error, ZIP_ER_ZIPCLOSED, 0); in _zip_source_invalidate()
114 window_read(zip_source_t *src, void *_ctx, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in window_read() argument
138 if ((ret=zip_source_read(src, b, i)) < 0) { in window_read()
139 _zip_error_set_from_source(&ctx->error, src); in window_read()
160 if (zip_source_seek(src, (zip_int64_t)ctx->offset, SEEK_SET) < 0) { in window_read()
161 _zip_error_set_from_source(&ctx->error, src); in window_read()
166 if ((ret=zip_source_read(src, data, len)) < 0) { in window_read()
219 _zip_deregister_source(zip_t *za, zip_source_t *src) in _zip_deregister_source() argument
224 if (za->open_source[i] == src) { in _zip_deregister_source()
234 _zip_register_source(zip_t *za, zip_source_t *src) in _zip_register_source() argument
250 za->open_source[za->nopen_source++] = src; in _zip_register_source()