Rizin
unix-like reverse engineering framework and cli tools
zip_unchange_all.c File Reference
#include "zipint.h"

Go to the source code of this file.

Functions

ZIP_EXTERN int zip_unchange_all (zip_t *za)
 

Function Documentation

◆ zip_unchange_all()

ZIP_EXTERN int zip_unchange_all ( zip_t za)

Definition at line 39 of file zip_unchange_all.c.

39  {
40  int ret;
42 
43  if (!_zip_hash_revert(za->names, &za->error)) {
44  return -1;
45  }
46 
47  ret = 0;
48  for (i = 0; i < za->nentry; i++)
49  ret |= _zip_unchange(za, i, 1);
50 
51  ret |= zip_unchange_archive(za);
52 
53  return ret;
54 }
lzma_index ** i
Definition: index.h:629
ZIP_EXTERN int zip_unchange_archive(zip_t *_Nonnull)
zip_error_t error
Definition: zipint.h:281
zip_uint64_t nentry
Definition: zipint.h:292
zip_hash_t * names
Definition: zipint.h:300
bool _zip_hash_revert(zip_hash_t *hash, zip_error_t *error)
Definition: zip_hash.c:369
int _zip_unchange(zip_t *za, zip_uint64_t idx, int allow_duplicates)
Definition: zip_unchange.c:47
uint64_t zip_uint64_t
Definition: zipconf.h:39
zip_t * za
Definition: ziptool.c:79

References _zip_hash_revert(), _zip_unchange(), zip::error, i, zip::names, zip::nentry, za, and zip_unchange_archive().

Referenced by main(), and unchange_all().