summaryrefslogtreecommitdiff
path: root/contrib/minizip/unzip.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/minizip/unzip.h')
-rw-r--r--contrib/minizip/unzip.h708
1 files changed, 354 insertions, 354 deletions
diff --git a/contrib/minizip/unzip.h b/contrib/minizip/unzip.h
index c3206a0..b247937 100644
--- a/contrib/minizip/unzip.h
+++ b/contrib/minizip/unzip.h
@@ -1,354 +1,354 @@
1/* unzip.h -- IO for uncompress .zip files using zlib 1/* unzip.h -- IO for uncompress .zip files using zlib
2 Version 1.01e, February 12th, 2005 2 Version 1.01e, February 12th, 2005
3 3
4 Copyright (C) 1998-2005 Gilles Vollant 4 Copyright (C) 1998-2005 Gilles Vollant
5 5
6 This unzip package allow extract file from .ZIP file, compatible with PKZip 2.04g 6 This unzip package allow extract file from .ZIP file, compatible with PKZip 2.04g
7 WinZip, InfoZip tools and compatible. 7 WinZip, InfoZip tools and compatible.
8 8
9 Multi volume ZipFile (span) are not supported. 9 Multi volume ZipFile (span) are not supported.
10 Encryption compatible with pkzip 2.04g only supported 10 Encryption compatible with pkzip 2.04g only supported
11 Old compressions used by old PKZip 1.x are not supported 11 Old compressions used by old PKZip 1.x are not supported
12 12
13 13
14 I WAIT FEEDBACK at mail info@winimage.com 14 I WAIT FEEDBACK at mail info@winimage.com
15 Visit also http://www.winimage.com/zLibDll/unzip.htm for evolution 15 Visit also http://www.winimage.com/zLibDll/unzip.htm for evolution
16 16
17 Condition of use and distribution are the same than zlib : 17 Condition of use and distribution are the same than zlib :
18 18
19 This software is provided 'as-is', without any express or implied 19 This software is provided 'as-is', without any express or implied
20 warranty. In no event will the authors be held liable for any damages 20 warranty. In no event will the authors be held liable for any damages
21 arising from the use of this software. 21 arising from the use of this software.
22 22
23 Permission is granted to anyone to use this software for any purpose, 23 Permission is granted to anyone to use this software for any purpose,
24 including commercial applications, and to alter it and redistribute it 24 including commercial applications, and to alter it and redistribute it
25 freely, subject to the following restrictions: 25 freely, subject to the following restrictions:
26 26
27 1. The origin of this software must not be misrepresented; you must not 27 1. The origin of this software must not be misrepresented; you must not
28 claim that you wrote the original software. If you use this software 28 claim that you wrote the original software. If you use this software
29 in a product, an acknowledgment in the product documentation would be 29 in a product, an acknowledgment in the product documentation would be
30 appreciated but is not required. 30 appreciated but is not required.
31 2. Altered source versions must be plainly marked as such, and must not be 31 2. Altered source versions must be plainly marked as such, and must not be
32 misrepresented as being the original software. 32 misrepresented as being the original software.
33 3. This notice may not be removed or altered from any source distribution. 33 3. This notice may not be removed or altered from any source distribution.
34 34
35 35
36*/ 36*/
37 37
38/* for more info about .ZIP format, see 38/* for more info about .ZIP format, see
39 http://www.info-zip.org/pub/infozip/doc/appnote-981119-iz.zip 39 http://www.info-zip.org/pub/infozip/doc/appnote-981119-iz.zip
40 http://www.info-zip.org/pub/infozip/doc/ 40 http://www.info-zip.org/pub/infozip/doc/
41 PkWare has also a specification at : 41 PkWare has also a specification at :
42 ftp://ftp.pkware.com/probdesc.zip 42 ftp://ftp.pkware.com/probdesc.zip
43*/ 43*/
44 44
45#ifndef _unz_H 45#ifndef _unz_H
46#define _unz_H 46#define _unz_H
47 47
48#ifdef __cplusplus 48#ifdef __cplusplus
49extern "C" { 49extern "C" {
50#endif 50#endif
51 51
52#ifndef _ZLIB_H 52#ifndef _ZLIB_H
53#include "zlib.h" 53#include "zlib.h"
54#endif 54#endif
55 55
56#ifndef _ZLIBIOAPI_H 56#ifndef _ZLIBIOAPI_H
57#include "ioapi.h" 57#include "ioapi.h"
58#endif 58#endif
59 59
60#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) 60#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
61/* like the STRICT of WIN32, we define a pointer that cannot be converted 61/* like the STRICT of WIN32, we define a pointer that cannot be converted
62 from (void*) without cast */ 62 from (void*) without cast */
63typedef struct TagunzFile__ { int unused; } unzFile__; 63typedef struct TagunzFile__ { int unused; } unzFile__;
64typedef unzFile__ *unzFile; 64typedef unzFile__ *unzFile;
65#else 65#else
66typedef voidp unzFile; 66typedef voidp unzFile;
67#endif 67#endif
68 68
69 69
70#define UNZ_OK (0) 70#define UNZ_OK (0)
71#define UNZ_END_OF_LIST_OF_FILE (-100) 71#define UNZ_END_OF_LIST_OF_FILE (-100)
72#define UNZ_ERRNO (Z_ERRNO) 72#define UNZ_ERRNO (Z_ERRNO)
73#define UNZ_EOF (0) 73#define UNZ_EOF (0)
74#define UNZ_PARAMERROR (-102) 74#define UNZ_PARAMERROR (-102)
75#define UNZ_BADZIPFILE (-103) 75#define UNZ_BADZIPFILE (-103)
76#define UNZ_INTERNALERROR (-104) 76#define UNZ_INTERNALERROR (-104)
77#define UNZ_CRCERROR (-105) 77#define UNZ_CRCERROR (-105)
78 78
79/* tm_unz contain date/time info */ 79/* tm_unz contain date/time info */
80typedef struct tm_unz_s 80typedef struct tm_unz_s
81{ 81{
82 uInt tm_sec; /* seconds after the minute - [0,59] */ 82 uInt tm_sec; /* seconds after the minute - [0,59] */
83 uInt tm_min; /* minutes after the hour - [0,59] */ 83 uInt tm_min; /* minutes after the hour - [0,59] */
84 uInt tm_hour; /* hours since midnight - [0,23] */ 84 uInt tm_hour; /* hours since midnight - [0,23] */
85 uInt tm_mday; /* day of the month - [1,31] */ 85 uInt tm_mday; /* day of the month - [1,31] */
86 uInt tm_mon; /* months since January - [0,11] */ 86 uInt tm_mon; /* months since January - [0,11] */
87 uInt tm_year; /* years - [1980..2044] */ 87 uInt tm_year; /* years - [1980..2044] */
88} tm_unz; 88} tm_unz;
89 89
90/* unz_global_info structure contain global data about the ZIPfile 90/* unz_global_info structure contain global data about the ZIPfile
91 These data comes from the end of central dir */ 91 These data comes from the end of central dir */
92typedef struct unz_global_info_s 92typedef struct unz_global_info_s
93{ 93{
94 uLong number_entry; /* total number of entries in 94 uLong number_entry; /* total number of entries in
95 the central dir on this disk */ 95 the central dir on this disk */
96 uLong size_comment; /* size of the global comment of the zipfile */ 96 uLong size_comment; /* size of the global comment of the zipfile */
97} unz_global_info; 97} unz_global_info;
98 98
99 99
100/* unz_file_info contain information about a file in the zipfile */ 100/* unz_file_info contain information about a file in the zipfile */
101typedef struct unz_file_info_s 101typedef struct unz_file_info_s
102{ 102{
103 uLong version; /* version made by 2 bytes */ 103 uLong version; /* version made by 2 bytes */
104 uLong version_needed; /* version needed to extract 2 bytes */ 104 uLong version_needed; /* version needed to extract 2 bytes */
105 uLong flag; /* general purpose bit flag 2 bytes */ 105 uLong flag; /* general purpose bit flag 2 bytes */
106 uLong compression_method; /* compression method 2 bytes */ 106 uLong compression_method; /* compression method 2 bytes */
107 uLong dosDate; /* last mod file date in Dos fmt 4 bytes */ 107 uLong dosDate; /* last mod file date in Dos fmt 4 bytes */
108 uLong crc; /* crc-32 4 bytes */ 108 uLong crc; /* crc-32 4 bytes */
109 uLong compressed_size; /* compressed size 4 bytes */ 109 uLong compressed_size; /* compressed size 4 bytes */
110 uLong uncompressed_size; /* uncompressed size 4 bytes */ 110 uLong uncompressed_size; /* uncompressed size 4 bytes */
111 uLong size_filename; /* filename length 2 bytes */ 111 uLong size_filename; /* filename length 2 bytes */
112 uLong size_file_extra; /* extra field length 2 bytes */ 112 uLong size_file_extra; /* extra field length 2 bytes */
113 uLong size_file_comment; /* file comment length 2 bytes */ 113 uLong size_file_comment; /* file comment length 2 bytes */
114 114
115 uLong disk_num_start; /* disk number start 2 bytes */ 115 uLong disk_num_start; /* disk number start 2 bytes */
116 uLong internal_fa; /* internal file attributes 2 bytes */ 116 uLong internal_fa; /* internal file attributes 2 bytes */
117 uLong external_fa; /* external file attributes 4 bytes */ 117 uLong external_fa; /* external file attributes 4 bytes */
118 118
119 tm_unz tmu_date; 119 tm_unz tmu_date;
120} unz_file_info; 120} unz_file_info;
121 121
122extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1, 122extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
123 const char* fileName2, 123 const char* fileName2,
124 int iCaseSensitivity)); 124 int iCaseSensitivity));
125/* 125/*
126 Compare two filename (fileName1,fileName2). 126 Compare two filename (fileName1,fileName2).
127 If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp) 127 If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp)
128 If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi 128 If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi
129 or strcasecmp) 129 or strcasecmp)
130 If iCaseSenisivity = 0, case sensitivity is defaut of your operating system 130 If iCaseSenisivity = 0, case sensitivity is defaut of your operating system
131 (like 1 on Unix, 2 on Windows) 131 (like 1 on Unix, 2 on Windows)
132*/ 132*/
133 133
134 134
135extern unzFile ZEXPORT unzOpen OF((const char *path)); 135extern unzFile ZEXPORT unzOpen OF((const char *path));
136/* 136/*
137 Open a Zip file. path contain the full pathname (by example, 137 Open a Zip file. path contain the full pathname (by example,
138 on a Windows XP computer "c:\\zlib\\zlib113.zip" or on an Unix computer 138 on a Windows XP computer "c:\\zlib\\zlib113.zip" or on an Unix computer
139 "zlib/zlib113.zip". 139 "zlib/zlib113.zip".
140 If the zipfile cannot be opened (file don't exist or in not valid), the 140 If the zipfile cannot be opened (file don't exist or in not valid), the
141 return value is NULL. 141 return value is NULL.
142 Else, the return value is a unzFile Handle, usable with other function 142 Else, the return value is a unzFile Handle, usable with other function
143 of this unzip package. 143 of this unzip package.
144*/ 144*/
145 145
146extern unzFile ZEXPORT unzOpen2 OF((const char *path, 146extern unzFile ZEXPORT unzOpen2 OF((const char *path,
147 zlib_filefunc_def* pzlib_filefunc_def)); 147 zlib_filefunc_def* pzlib_filefunc_def));
148/* 148/*
149 Open a Zip file, like unzOpen, but provide a set of file low level API 149 Open a Zip file, like unzOpen, but provide a set of file low level API
150 for read/write the zip file (see ioapi.h) 150 for read/write the zip file (see ioapi.h)
151*/ 151*/
152 152
153extern int ZEXPORT unzClose OF((unzFile file)); 153extern int ZEXPORT unzClose OF((unzFile file));
154/* 154/*
155 Close a ZipFile opened with unzipOpen. 155 Close a ZipFile opened with unzipOpen.
156 If there is files inside the .Zip opened with unzOpenCurrentFile (see later), 156 If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
157 these files MUST be closed with unzipCloseCurrentFile before call unzipClose. 157 these files MUST be closed with unzipCloseCurrentFile before call unzipClose.
158 return UNZ_OK if there is no problem. */ 158 return UNZ_OK if there is no problem. */
159 159
160extern int ZEXPORT unzGetGlobalInfo OF((unzFile file, 160extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
161 unz_global_info *pglobal_info)); 161 unz_global_info *pglobal_info));
162/* 162/*
163 Write info about the ZipFile in the *pglobal_info structure. 163 Write info about the ZipFile in the *pglobal_info structure.
164 No preparation of the structure is needed 164 No preparation of the structure is needed
165 return UNZ_OK if there is no problem. */ 165 return UNZ_OK if there is no problem. */
166 166
167 167
168extern int ZEXPORT unzGetGlobalComment OF((unzFile file, 168extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
169 char *szComment, 169 char *szComment,
170 uLong uSizeBuf)); 170 uLong uSizeBuf));
171/* 171/*
172 Get the global comment string of the ZipFile, in the szComment buffer. 172 Get the global comment string of the ZipFile, in the szComment buffer.
173 uSizeBuf is the size of the szComment buffer. 173 uSizeBuf is the size of the szComment buffer.
174 return the number of byte copied or an error code <0 174 return the number of byte copied or an error code <0
175*/ 175*/
176 176
177 177
178/***************************************************************************/ 178/***************************************************************************/
179/* Unzip package allow you browse the directory of the zipfile */ 179/* Unzip package allow you browse the directory of the zipfile */
180 180
181extern int ZEXPORT unzGoToFirstFile OF((unzFile file)); 181extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
182/* 182/*
183 Set the current file of the zipfile to the first file. 183 Set the current file of the zipfile to the first file.
184 return UNZ_OK if there is no problem 184 return UNZ_OK if there is no problem
185*/ 185*/
186 186
187extern int ZEXPORT unzGoToNextFile OF((unzFile file)); 187extern int ZEXPORT unzGoToNextFile OF((unzFile file));
188/* 188/*
189 Set the current file of the zipfile to the next file. 189 Set the current file of the zipfile to the next file.
190 return UNZ_OK if there is no problem 190 return UNZ_OK if there is no problem
191 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest. 191 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
192*/ 192*/
193 193
194extern int ZEXPORT unzLocateFile OF((unzFile file, 194extern int ZEXPORT unzLocateFile OF((unzFile file,
195 const char *szFileName, 195 const char *szFileName,
196 int iCaseSensitivity)); 196 int iCaseSensitivity));
197/* 197/*
198 Try locate the file szFileName in the zipfile. 198 Try locate the file szFileName in the zipfile.
199 For the iCaseSensitivity signification, see unzStringFileNameCompare 199 For the iCaseSensitivity signification, see unzStringFileNameCompare
200 200
201 return value : 201 return value :
202 UNZ_OK if the file is found. It becomes the current file. 202 UNZ_OK if the file is found. It becomes the current file.
203 UNZ_END_OF_LIST_OF_FILE if the file is not found 203 UNZ_END_OF_LIST_OF_FILE if the file is not found
204*/ 204*/
205 205
206 206
207/* ****************************************** */ 207/* ****************************************** */
208/* Ryan supplied functions */ 208/* Ryan supplied functions */
209/* unz_file_info contain information about a file in the zipfile */ 209/* unz_file_info contain information about a file in the zipfile */
210typedef struct unz_file_pos_s 210typedef struct unz_file_pos_s
211{ 211{
212 uLong pos_in_zip_directory; /* offset in zip file directory */ 212 uLong pos_in_zip_directory; /* offset in zip file directory */
213 uLong num_of_file; /* # of file */ 213 uLong num_of_file; /* # of file */
214} unz_file_pos; 214} unz_file_pos;
215 215
216extern int ZEXPORT unzGetFilePos( 216extern int ZEXPORT unzGetFilePos(
217 unzFile file, 217 unzFile file,
218 unz_file_pos* file_pos); 218 unz_file_pos* file_pos);
219 219
220extern int ZEXPORT unzGoToFilePos( 220extern int ZEXPORT unzGoToFilePos(
221 unzFile file, 221 unzFile file,
222 unz_file_pos* file_pos); 222 unz_file_pos* file_pos);
223 223
224/* ****************************************** */ 224/* ****************************************** */
225 225
226extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file, 226extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
227 unz_file_info *pfile_info, 227 unz_file_info *pfile_info,
228 char *szFileName, 228 char *szFileName,
229 uLong fileNameBufferSize, 229 uLong fileNameBufferSize,
230 void *extraField, 230 void *extraField,
231 uLong extraFieldBufferSize, 231 uLong extraFieldBufferSize,
232 char *szComment, 232 char *szComment,
233 uLong commentBufferSize)); 233 uLong commentBufferSize));
234/* 234/*
235 Get Info about the current file 235 Get Info about the current file
236 if pfile_info!=NULL, the *pfile_info structure will contain somes info about 236 if pfile_info!=NULL, the *pfile_info structure will contain somes info about
237 the current file 237 the current file
238 if szFileName!=NULL, the filemane string will be copied in szFileName 238 if szFileName!=NULL, the filemane string will be copied in szFileName
239 (fileNameBufferSize is the size of the buffer) 239 (fileNameBufferSize is the size of the buffer)
240 if extraField!=NULL, the extra field information will be copied in extraField 240 if extraField!=NULL, the extra field information will be copied in extraField
241 (extraFieldBufferSize is the size of the buffer). 241 (extraFieldBufferSize is the size of the buffer).
242 This is the Central-header version of the extra field 242 This is the Central-header version of the extra field
243 if szComment!=NULL, the comment string of the file will be copied in szComment 243 if szComment!=NULL, the comment string of the file will be copied in szComment
244 (commentBufferSize is the size of the buffer) 244 (commentBufferSize is the size of the buffer)
245*/ 245*/
246 246
247/***************************************************************************/ 247/***************************************************************************/
248/* for reading the content of the current zipfile, you can open it, read data 248/* for reading the content of the current zipfile, you can open it, read data
249 from it, and close it (you can close it before reading all the file) 249 from it, and close it (you can close it before reading all the file)
250 */ 250 */
251 251
252extern int ZEXPORT unzOpenCurrentFile OF((unzFile file)); 252extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
253/* 253/*
254 Open for reading data the current file in the zipfile. 254 Open for reading data the current file in the zipfile.
255 If there is no error, the return value is UNZ_OK. 255 If there is no error, the return value is UNZ_OK.
256*/ 256*/
257 257
258extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file, 258extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
259 const char* password)); 259 const char* password));
260/* 260/*
261 Open for reading data the current file in the zipfile. 261 Open for reading data the current file in the zipfile.
262 password is a crypting password 262 password is a crypting password
263 If there is no error, the return value is UNZ_OK. 263 If there is no error, the return value is UNZ_OK.
264*/ 264*/
265 265
266extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file, 266extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
267 int* method, 267 int* method,
268 int* level, 268 int* level,
269 int raw)); 269 int raw));
270/* 270/*
271 Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) 271 Same than unzOpenCurrentFile, but open for read raw the file (not uncompress)
272 if raw==1 272 if raw==1
273 *method will receive method of compression, *level will receive level of 273 *method will receive method of compression, *level will receive level of
274 compression 274 compression
275 note : you can set level parameter as NULL (if you did not want known level, 275 note : you can set level parameter as NULL (if you did not want known level,
276 but you CANNOT set method parameter as NULL 276 but you CANNOT set method parameter as NULL
277*/ 277*/
278 278
279extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file, 279extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
280 int* method, 280 int* method,
281 int* level, 281 int* level,
282 int raw, 282 int raw,
283 const char* password)); 283 const char* password));
284/* 284/*
285 Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) 285 Same than unzOpenCurrentFile, but open for read raw the file (not uncompress)
286 if raw==1 286 if raw==1
287 *method will receive method of compression, *level will receive level of 287 *method will receive method of compression, *level will receive level of
288 compression 288 compression
289 note : you can set level parameter as NULL (if you did not want known level, 289 note : you can set level parameter as NULL (if you did not want known level,
290 but you CANNOT set method parameter as NULL 290 but you CANNOT set method parameter as NULL
291*/ 291*/
292 292
293 293
294extern int ZEXPORT unzCloseCurrentFile OF((unzFile file)); 294extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
295/* 295/*
296 Close the file in zip opened with unzOpenCurrentFile 296 Close the file in zip opened with unzOpenCurrentFile
297 Return UNZ_CRCERROR if all the file was read but the CRC is not good 297 Return UNZ_CRCERROR if all the file was read but the CRC is not good
298*/ 298*/
299 299
300extern int ZEXPORT unzReadCurrentFile OF((unzFile file, 300extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
301 voidp buf, 301 voidp buf,
302 unsigned len)); 302 unsigned len));
303/* 303/*
304 Read bytes from the current file (opened by unzOpenCurrentFile) 304 Read bytes from the current file (opened by unzOpenCurrentFile)
305 buf contain buffer where data must be copied 305 buf contain buffer where data must be copied
306 len the size of buf. 306 len the size of buf.
307 307
308 return the number of byte copied if somes bytes are copied 308 return the number of byte copied if somes bytes are copied
309 return 0 if the end of file was reached 309 return 0 if the end of file was reached
310 return <0 with error code if there is an error 310 return <0 with error code if there is an error
311 (UNZ_ERRNO for IO error, or zLib error for uncompress error) 311 (UNZ_ERRNO for IO error, or zLib error for uncompress error)
312*/ 312*/
313 313
314extern z_off_t ZEXPORT unztell OF((unzFile file)); 314extern z_off_t ZEXPORT unztell OF((unzFile file));
315/* 315/*
316 Give the current position in uncompressed data 316 Give the current position in uncompressed data
317*/ 317*/
318 318
319extern int ZEXPORT unzeof OF((unzFile file)); 319extern int ZEXPORT unzeof OF((unzFile file));
320/* 320/*
321 return 1 if the end of file was reached, 0 elsewhere 321 return 1 if the end of file was reached, 0 elsewhere
322*/ 322*/
323 323
324extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file, 324extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
325 voidp buf, 325 voidp buf,
326 unsigned len)); 326 unsigned len));
327/* 327/*
328 Read extra field from the current file (opened by unzOpenCurrentFile) 328 Read extra field from the current file (opened by unzOpenCurrentFile)
329 This is the local-header version of the extra field (sometimes, there is 329 This is the local-header version of the extra field (sometimes, there is
330 more info in the local-header version than in the central-header) 330 more info in the local-header version than in the central-header)
331 331
332 if buf==NULL, it return the size of the local extra field 332 if buf==NULL, it return the size of the local extra field
333 333
334 if buf!=NULL, len is the size of the buffer, the extra header is copied in 334 if buf!=NULL, len is the size of the buffer, the extra header is copied in
335 buf. 335 buf.
336 the return value is the number of bytes copied in buf, or (if <0) 336 the return value is the number of bytes copied in buf, or (if <0)
337 the error code 337 the error code
338*/ 338*/
339 339
340/***************************************************************************/ 340/***************************************************************************/
341 341
342/* Get the current file offset */ 342/* Get the current file offset */
343extern uLong ZEXPORT unzGetOffset (unzFile file); 343extern uLong ZEXPORT unzGetOffset (unzFile file);
344 344
345/* Set the current file offset */ 345/* Set the current file offset */
346extern int ZEXPORT unzSetOffset (unzFile file, uLong pos); 346extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);
347 347
348 348
349 349
350#ifdef __cplusplus 350#ifdef __cplusplus
351} 351}
352#endif 352#endif
353 353
354#endif /* _unz_H */ 354#endif /* _unz_H */