Rizin
unix-like reverse engineering framework and cli tools
|
#include "zipint.h"
Go to the source code of this file.
int _zip_file_extra_field_prepare_for_change | ( | zip_t * | za, |
zip_uint64_t | idx | ||
) |
Definition at line 323 of file zip_extra_field_api.c.
References _zip_dirent_clone(), _zip_ef_clone(), _zip_read_local_ef(), e, zip::entry, zip::error, setup::idx, zip::nentry, NULL, za, ZIP_DIRENT_EXTRA_FIELD, ZIP_ER_INVAL, ZIP_ER_MEMORY, and zip_error_set().
Referenced by zip_file_extra_field_delete(), zip_file_extra_field_delete_by_id(), and zip_file_extra_field_set().
ZIP_EXTERN int zip_file_extra_field_delete | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_idx, | ||
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_extra_field_api.c.
References _zip_ef_delete_by_id(), _zip_file_extra_field_prepare_for_change(), _zip_get_dirent(), zip_entry::changes, zip::entry, zip::error, zip_dirent::extra_fields, flags, setup::idx, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXTRA_FIELD_ALL, and ZIP_IS_RDONLY.
Referenced by delete_extra().
ZIP_EXTERN int zip_file_extra_field_delete_by_id | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_uint16_t | ef_idx, | ||
zip_flags_t | flags | ||
) |
Definition at line 71 of file zip_extra_field_api.c.
References _zip_ef_delete_by_id(), _zip_file_extra_field_prepare_for_change(), _zip_get_dirent(), zip_entry::changes, zip::entry, zip::error, zip_dirent::extra_fields, flags, setup::idx, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXTRA_FIELD_ALL, and ZIP_IS_RDONLY.
Referenced by delete_extra_by_id().
ZIP_EXTERN const zip_uint8_t* zip_file_extra_field_get | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_idx, | ||
zip_uint16_t * | idp, | ||
zip_uint16_t * | lenp, | ||
zip_flags_t | flags | ||
) |
Definition at line 103 of file zip_extra_field_api.c.
References _zip_get_dirent(), _zip_read_local_ef(), ef::data, ef, zip::error, zip_dirent::extra_fields, flags, ef::flags, i, ef::id, setup::idx, NULL, ef::size, za, ZIP_EF_BOTH, ZIP_ER_INVAL, ZIP_ER_NOENT, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by ef_read(), and get_extra().
ZIP_EXTERN const zip_uint8_t* zip_file_extra_field_get_by_id | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_uint16_t | ef_idx, | ||
zip_uint16_t * | lenp, | ||
zip_flags_t | flags | ||
) |
Definition at line 147 of file zip_extra_field_api.c.
References _zip_ef_get_by_id(), _zip_get_dirent(), _zip_read_local_ef(), zip::error, zip_dirent::extra_fields, flags, setup::idx, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by get_extra_by_id().
ZIP_EXTERN int zip_file_extra_field_set | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_uint16_t | ef_idx, | ||
const zip_uint8_t * | data, | ||
zip_uint16_t | len, | ||
zip_flags_t | flags | ||
) |
Definition at line 221 of file zip_extra_field_api.c.
References _zip_ef_free(), _zip_ef_new(), _zip_ef_size(), _zip_file_extra_field_prepare_for_change(), _zip_get_dirent(), zip_entry::changes, test_evm::cs, ef, zip::entry, zip::error, zip_dirent::extra_fields, flags, ef::flags, found, i, ef::id, setup::idx, len, zip_extra_field::next, NULL, ef::size, za, ZIP_EF_BOTH, ZIP_EF_CENTRAL, ZIP_EF_IS_INTERNAL, ZIP_EF_LOCAL, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXTRA_FIELD_NEW, ZIP_IS_RDONLY, and ZIP_UINT16_MAX.
Referenced by set_extra().
ZIP_EXTERN zip_int16_t zip_file_extra_fields_count | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_flags_t | flags | ||
) |
Definition at line 167 of file zip_extra_field_api.c.
References _zip_get_dirent(), _zip_read_local_ef(), ef, zip::error, zip_dirent::extra_fields, flags, ef::flags, setup::idx, n, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by count_extra(), and ef_read().
ZIP_EXTERN zip_int16_t zip_file_extra_fields_count_by_id | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_flags_t | flags | ||
) |
Definition at line 194 of file zip_extra_field_api.c.
References _zip_get_dirent(), _zip_read_local_ef(), ef, zip::error, zip_dirent::extra_fields, flags, ef::flags, ef::id, setup::idx, n, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by count_extra_by_id().