Lines Matching refs:flags

39 zip_file_extra_field_delete(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_flags_t flags)  in zip_file_extra_field_delete()  argument
43 if ((flags & ZIP_EF_BOTH) == 0) { in zip_file_extra_field_delete()
48 if (((flags & ZIP_EF_BOTH) == ZIP_EF_BOTH) && (ef_idx != ZIP_EXTRA_FIELD_ALL)) { in zip_file_extra_field_delete()
66 de->extra_fields = _zip_ef_delete_by_id(de->extra_fields, ZIP_EXTRA_FIELD_ALL, ef_idx, flags); in zip_file_extra_field_delete()
72 …lete_by_id(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, zip_flags_t flags) in zip_file_extra_field_delete_by_id() argument
76 if ((flags & ZIP_EF_BOTH) == 0) { in zip_file_extra_field_delete_by_id()
81 if (((flags & ZIP_EF_BOTH) == ZIP_EF_BOTH) && (ef_idx != ZIP_EXTRA_FIELD_ALL)) { in zip_file_extra_field_delete_by_id()
99 de->extra_fields = _zip_ef_delete_by_id(de->extra_fields, ef_id, ef_idx, flags); in zip_file_extra_field_delete_by_id()
105 …a, zip_uint64_t idx, zip_uint16_t ef_idx, zip_uint16_t *idp, zip_uint16_t *lenp, zip_flags_t flags) in zip_file_extra_field_get() argument
113 if ((flags & ZIP_EF_BOTH) == 0) { in zip_file_extra_field_get()
118 if ((de=_zip_get_dirent(za, idx, flags, &za->error)) == NULL) in zip_file_extra_field_get()
121 if (flags & ZIP_FL_LOCAL) in zip_file_extra_field_get()
127 if (ef->flags & flags & ZIP_EF_BOTH) { in zip_file_extra_field_get()
151 …, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, zip_uint16_t *lenp, zip_flags_t flags) in zip_file_extra_field_get_by_id() argument
155 if ((flags & ZIP_EF_BOTH) == 0) { in zip_file_extra_field_get_by_id()
160 if ((de=_zip_get_dirent(za, idx, flags, &za->error)) == NULL) in zip_file_extra_field_get_by_id()
163 if (flags & ZIP_FL_LOCAL) in zip_file_extra_field_get_by_id()
167 return _zip_ef_get_by_id(de->extra_fields, lenp, ef_id, ef_idx, flags, &za->error); in zip_file_extra_field_get_by_id()
172 zip_file_extra_fields_count(zip_t *za, zip_uint64_t idx, zip_flags_t flags) in zip_file_extra_fields_count() argument
178 if ((flags & ZIP_EF_BOTH) == 0) { in zip_file_extra_fields_count()
183 if ((de=_zip_get_dirent(za, idx, flags, &za->error)) == NULL) in zip_file_extra_fields_count()
186 if (flags & ZIP_FL_LOCAL) in zip_file_extra_fields_count()
192 if (ef->flags & flags & ZIP_EF_BOTH) in zip_file_extra_fields_count()
200 …p_file_extra_fields_count_by_id(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_flags_t flags) in zip_file_extra_fields_count_by_id() argument
206 if ((flags & ZIP_EF_BOTH) == 0) { in zip_file_extra_fields_count_by_id()
211 if ((de=_zip_get_dirent(za, idx, flags, &za->error)) == NULL) in zip_file_extra_fields_count_by_id()
214 if (flags & ZIP_FL_LOCAL) in zip_file_extra_fields_count_by_id()
220 if (ef->id == ef_id && (ef->flags & flags & ZIP_EF_BOTH)) in zip_file_extra_fields_count_by_id()
228 …_uint16_t ef_id, zip_uint16_t ef_idx, const zip_uint8_t *data, zip_uint16_t len, zip_flags_t flags) in zip_file_extra_field_set() argument
235 if ((flags & ZIP_EF_BOTH) == 0) { in zip_file_extra_field_set()
264 if (ef->id == ef_id && (ef->flags & flags & ZIP_EF_BOTH)) { in zip_file_extra_field_set()
279 if (flags & ZIP_EF_LOCAL) in zip_file_extra_field_set()
283 if (flags & ZIP_EF_CENTRAL) in zip_file_extra_field_set()
298 if ((ef_new=_zip_ef_new(ef_id, len, data, flags)) == NULL) { in zip_file_extra_field_set()
304 if ((ef->flags & ZIP_EF_BOTH) == (flags & ZIP_EF_BOTH)) { in zip_file_extra_field_set()
314 ef->flags &= ~(flags & ZIP_EF_BOTH); in zip_file_extra_field_set()