224 char *msg; /* zip error message */
225 jzcell *entries; /* array of hash cells */
226 jint total; /* total number of entries */
227 jint *table; /* Hash chain heads: indexes into entries */
228 jint tablelen; /* number of hash heads */
229 struct jzfile *next; /* next zip file in search list */
230 jzentry *cache; /* we cache the most recently freed jzentry */
231 /* Information on metadata names in META-INF directory */
232 char **metanames; /* array of meta names (may have null names) */
233 jint metacurrent; /* the next empty slot in metanames array */
234 jint metacount; /* number of slots in metanames array */
235 jlong lastModified; /* last modified time */
236 jlong locpos; /* position of first LOC header (usually 0) */
237 } jzfile;
238
239 /*
240 * Index representing end of hash chain
241 */
242 #define ZIP_ENDCHAIN ((jint)-1)
243
244 JNIEXPORT jzentry * JNICALL
245 ZIP_FindEntry(jzfile *zip, char *name, jint *sizeP, jint *nameLenP);
246
247 JNIEXPORT jboolean JNICALL
248 ZIP_ReadEntry(jzfile *zip, jzentry *entry, unsigned char *buf, char *entrynm);
249
250 JNIEXPORT jzentry * JNICALL
251 ZIP_GetNextEntry(jzfile *zip, jint n);
252
253 JNIEXPORT jzfile * JNICALL
254 ZIP_Open(const char *name, char **pmsg);
255
256 jzfile *
257 ZIP_Open_Generic(const char *name, char **pmsg, int mode, jlong lastModified);
258
259 jzfile *
260 ZIP_Get_From_Cache(const char *name, char **pmsg, jlong lastModified);
261
262 jzfile *
263 ZIP_Put_In_Cache(const char *name, ZFILE zfd, char **pmsg, jlong lastModified);
264
265 jzfile *
266 ZIP_Put_In_Cache0(const char *name, ZFILE zfd, char **pmsg, jlong lastModified, jboolean usemmap);
267
268 JNIEXPORT void JNICALL
269 ZIP_Close(jzfile *zip);
270
271 JNIEXPORT jzentry * JNICALL
272 ZIP_GetEntry(jzfile *zip, char *name, jint ulen);
273 JNIEXPORT void JNICALL
274 ZIP_Lock(jzfile *zip);
275 JNIEXPORT void JNICALL
276 ZIP_Unlock(jzfile *zip);
277 JNIEXPORT jint JNICALL
278 ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len);
279 JNIEXPORT void JNICALL
280 ZIP_FreeEntry(jzfile *zip, jzentry *ze);
281 jlong ZIP_GetEntryDataOffset(jzfile *zip, jzentry *entry);
282 jzentry * ZIP_GetEntry2(jzfile *zip, char *name, jint ulen, jboolean addSlash);
283
284 JNIEXPORT jboolean JNICALL
285 ZIP_InflateFully(void *inBuf, jlong inLen, void *outBuf, jlong outLen, char **pmsg);
286
287 #endif /* !_ZIP_H_ */
|
224 char *msg; /* zip error message */
225 jzcell *entries; /* array of hash cells */
226 jint total; /* total number of entries */
227 jint *table; /* Hash chain heads: indexes into entries */
228 jint tablelen; /* number of hash heads */
229 struct jzfile *next; /* next zip file in search list */
230 jzentry *cache; /* we cache the most recently freed jzentry */
231 /* Information on metadata names in META-INF directory */
232 char **metanames; /* array of meta names (may have null names) */
233 jint metacurrent; /* the next empty slot in metanames array */
234 jint metacount; /* number of slots in metanames array */
235 jlong lastModified; /* last modified time */
236 jlong locpos; /* position of first LOC header (usually 0) */
237 } jzfile;
238
239 /*
240 * Index representing end of hash chain
241 */
242 #define ZIP_ENDCHAIN ((jint)-1)
243
244 JNIEXPORT jzentry *
245 ZIP_FindEntry(jzfile *zip, char *name, jint *sizeP, jint *nameLenP);
246
247 JNIEXPORT jboolean
248 ZIP_ReadEntry(jzfile *zip, jzentry *entry, unsigned char *buf, char *entrynm);
249
250 JNIEXPORT jzentry *
251 ZIP_GetNextEntry(jzfile *zip, jint n);
252
253 JNIEXPORT jzfile *
254 ZIP_Open(const char *name, char **pmsg);
255
256 jzfile *
257 ZIP_Open_Generic(const char *name, char **pmsg, int mode, jlong lastModified);
258
259 jzfile *
260 ZIP_Get_From_Cache(const char *name, char **pmsg, jlong lastModified);
261
262 jzfile *
263 ZIP_Put_In_Cache(const char *name, ZFILE zfd, char **pmsg, jlong lastModified);
264
265 jzfile *
266 ZIP_Put_In_Cache0(const char *name, ZFILE zfd, char **pmsg, jlong lastModified, jboolean usemmap);
267
268 JNIEXPORT void
269 ZIP_Close(jzfile *zip);
270
271 JNIEXPORT jzentry *
272 ZIP_GetEntry(jzfile *zip, char *name, jint ulen);
273 JNIEXPORT void JNICALL
274 ZIP_Lock(jzfile *zip);
275 JNIEXPORT void JNICALL
276 ZIP_Unlock(jzfile *zip);
277 JNIEXPORT jint JNICALL
278 ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len);
279 JNIEXPORT void JNICALL
280 ZIP_FreeEntry(jzfile *zip, jzentry *ze);
281 jlong ZIP_GetEntryDataOffset(jzfile *zip, jzentry *entry);
282 jzentry * ZIP_GetEntry2(jzfile *zip, char *name, jint ulen, jboolean addSlash);
283
284 JNIEXPORT jboolean
285 ZIP_InflateFully(void *inBuf, jlong inLen, void *outBuf, jlong outLen, char **pmsg);
286
287 #endif /* !_ZIP_H_ */
|