This allows the caller to obtain a list of .zip members.
return NULL;
}
+const char *
+zip_reader_get_member_name(const struct zip_reader *zr, size_t idx)
+{
+ return idx < zr->n_entries ? zr->entries[idx].name : NULL;
+}
+
/* Return the member called MEMBER from the reader ZR */
struct zip_member *
zip_member_open (struct zip_reader *zr, const char *member)
/* Destroy the zip reader */
void zip_reader_destroy (struct zip_reader *zr);
+/* Returns the name of ZR's member IDX, IDX >= 0. Returns NULL if ZR has fewer
+ than (IDX + 1) members. */
+const char *zip_reader_get_member_name(const struct zip_reader *zr,
+ size_t idx);
+
/* Return the zip member in the reader ZR, called MEMBER */
struct zip_member *zip_member_open (struct zip_reader *zr, const char *member);
void zip_member_finish (struct zip_member *zm);
+
#endif