Rizin
unix-like reverse engineering framework and cli tools
|
#include "zipint.h"
Go to the source code of this file.
Functions | |
ZIP_EXTERN int | zip_file_replace (zip_t *za, zip_uint64_t idx, zip_source_t *source, zip_flags_t flags) |
zip_int64_t | _zip_file_replace (zip_t *za, zip_uint64_t idx, const char *name, zip_source_t *source, zip_flags_t flags) |
zip_int64_t _zip_file_replace | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
const char * | name, | ||
zip_source_t * | source, | ||
zip_flags_t | flags | ||
) |
Definition at line 55 of file zip_file_replace.c.
References _zip_add_entry(), _zip_dirent_clone(), _zip_entry_finalize(), _zip_name_locate(), _zip_set_name(), _zip_unchange_data(), zip_dirent::changed, zip_entry::changes, zip_dirent::comp_method, zip::entry, zip::error, flags, i, setup::idx, zip::nentry, NULL, zip_entry::orig, zip_entry::source, source, za, ZIP_CM_REPLACED_DEFAULT, ZIP_DIRENT_COMP_METHOD, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), ZIP_FL_OVERWRITE, ZIP_IS_RDONLY, and ZIP_UINT64_MAX.
Referenced by zip_dir_add(), zip_file_add(), and zip_file_replace().
ZIP_EXTERN int zip_file_replace | ( | zip_t * | za, |
zip_uint64_t | idx, | ||
zip_source_t * | source, | ||
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_file_replace.c.
References _zip_file_replace(), zip::error, flags, setup::idx, zip::nentry, NULL, source, za, ZIP_ER_INVAL, and zip_error_set().
Referenced by replace_file_contents(), and zip_replace().