Lines Matching refs:zip
467 static void* unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz) in unzip_file() argument
471 if (FindEntry(zip, zip_entry_name, &zip_entry) != 0) { in unzip_file()
484 int error = ExtractToMemory(zip, &zip_entry, data, zip_entry.uncompressed_length); in unzip_file()
575 static int unzip_to_file(ZipArchiveHandle zip, char* entry_name) { in unzip_to_file() argument
585 if (FindEntry(zip, zip_entry_name, &zip_entry) != 0) { in unzip_to_file()
591 int error = ExtractEntryToFile(zip, &zip_entry, fd); in unzip_to_file()
968 static void do_update_signature(ZipArchiveHandle zip, char* fn) { in do_update_signature() argument
970 void* data = unzip_file(zip, fn, &sz); in do_update_signature()
981 ZipArchiveHandle zip; in do_update() local
982 int error = OpenArchive(filename, &zip); in do_update()
984 CloseArchive(zip); in do_update()
989 void* data = unzip_file(zip, "android-info.txt", &sz); in do_update()
991 CloseArchive(zip); in do_update()
998 int fd = unzip_to_file(zip, images[i].img_name); in do_update()
1003 CloseArchive(zip); in do_update()
1011 do_update_signature(zip, images[i].sig_name); in do_update()
1024 CloseArchive(zip); in do_update()