summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zipint.h
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-08-07 23:24:11 +0000
committerPierre Joye <pajoye@php.net>2008-08-07 23:24:11 +0000
commit490a34220583be5eee4ad2e8be56e9e285ec0e74 (patch)
tree8b67a365ee193b545a0c067c23c478e8d5fcbe06 /ext/zip/lib/zipint.h
parentc94f8b4a1cb303bebc22ca83d09a05064877bf4b (diff)
downloadphp-git-490a34220583be5eee4ad2e8be56e9e285ec0e74.tar.gz
- MFH: update to 0.9 (torrentzip support, files open only when necessary), windows fixes
Diffstat (limited to 'ext/zip/lib/zipint.h')
-rw-r--r--ext/zip/lib/zipint.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/zip/lib/zipint.h b/ext/zip/lib/zipint.h
index 165f68dc65..25d6bec98f 100644
--- a/ext/zip/lib/zipint.h
+++ b/ext/zip/lib/zipint.h
@@ -67,6 +67,8 @@
#define DATADES_MAGIC "PK\7\8"
#define TORRENT_SIG "TORRENTZIPPED-"
#define TORRENT_SIG_LEN 14
+#define TORRENT_CRC_LEN 8
+#define TORRENT_MEM_LEVEL 8
#define CDENTRYSIZE 46u
#define LENTRYSIZE 30
#define MAXCOMLEN 65536
@@ -208,6 +210,7 @@ extern const int _zip_err_type[];
+int _zip_cdir_compute_crc(struct zip *, uLong *);
void _zip_cdir_free(struct zip_cdir *);
struct zip_cdir *_zip_cdir_new(int, struct zip_error *);
int _zip_cdir_write(struct zip_cdir *, FILE *, struct zip_error *);
@@ -216,6 +219,7 @@ void _zip_dirent_finalize(struct zip_dirent *);
void _zip_dirent_init(struct zip_dirent *);
int _zip_dirent_read(struct zip_dirent *, FILE *,
unsigned char **, unsigned int, int, struct zip_error *);
+void _zip_dirent_torrent_normalize(struct zip_dirent *);
int _zip_dirent_write(struct zip_dirent *, FILE *, int, struct zip_error *);
void _zip_entry_free(struct zip_entry *);
@@ -233,6 +237,11 @@ const char *_zip_error_strerror(struct zip_error *);
int _zip_file_fillbuf(void *, size_t, struct zip_file *);
unsigned int _zip_file_get_offset(struct zip *, int);
+int _zip_filerange_crc(FILE *, off_t, off_t, uLong *, struct zip_error *);
+
+struct zip_source *_zip_source_file_or_p(struct zip *, const char *, FILE *,
+ off_t, off_t);
+
void _zip_free(struct zip *);
const char *_zip_get_name(struct zip *, int, int, struct zip_error *);
int _zip_local_header_read(struct zip *, int);