Lines Matching refs:src
38 zip_source_open(zip_source_t *src) in zip_source_open() argument
40 if (src->source_closed) { in zip_source_open()
43 if (src->write_state == ZIP_SOURCE_WRITE_REMOVED) { in zip_source_open()
44 zip_error_set(&src->error, ZIP_ER_DELETED, 0); in zip_source_open()
48 if (ZIP_SOURCE_IS_OPEN_READING(src)) { in zip_source_open()
49 if ((zip_source_supports(src) & ZIP_SOURCE_MAKE_COMMAND_BITMASK(ZIP_SOURCE_SEEK)) == 0) { in zip_source_open()
50 zip_error_set(&src->error, ZIP_ER_INUSE, 0); in zip_source_open()
55 if (ZIP_SOURCE_IS_LAYERED(src)) { in zip_source_open()
56 if (zip_source_open(src->src) < 0) { in zip_source_open()
57 _zip_error_set_from_source(&src->error, src->src); in zip_source_open()
62 if (_zip_source_call(src, NULL, 0, ZIP_SOURCE_OPEN) < 0) { in zip_source_open()
63 if (ZIP_SOURCE_IS_LAYERED(src)) { in zip_source_open()
64 zip_source_close(src->src); in zip_source_open()
70 src->open_count++; in zip_source_open()