Lines 50-56
Link Here
|
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 |
Lines 119-125
Link Here
|
119 |
tm_unz tmu_date; |
119 |
tm_unz tmu_date; |
120 |
} unz_file_info; |
120 |
} unz_file_info; |
121 |
|
121 |
|
122 |
extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1, |
122 |
extern int ZEXPORT unzStringFileNameCompare _Z_OF((const char* fileName1, |
123 |
const char* fileName2, |
123 |
const char* fileName2, |
124 |
int iCaseSensitivity)); |
124 |
int iCaseSensitivity)); |
125 |
/* |
125 |
/* |
Lines 132-138
Link Here
|
132 |
*/ |
132 |
*/ |
133 |
|
133 |
|
134 |
|
134 |
|
135 |
extern unzFile ZEXPORT unzOpen OF((const char *path)); |
135 |
extern unzFile ZEXPORT unzOpen _Z_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 |
Lines 143-163
Link Here
|
143 |
of this unzip package. |
143 |
of this unzip package. |
144 |
*/ |
144 |
*/ |
145 |
|
145 |
|
146 |
extern unzFile ZEXPORT unzOpen2 OF((const char *path, |
146 |
extern unzFile ZEXPORT unzOpen2 _Z_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 |
|
153 |
extern int ZEXPORT unzClose OF((unzFile file)); |
153 |
extern int ZEXPORT unzClose _Z_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 |
|
160 |
extern int ZEXPORT unzGetGlobalInfo OF((unzFile file, |
160 |
extern int ZEXPORT unzGetGlobalInfo _Z_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. |
Lines 165-171
Link Here
|
165 |
return UNZ_OK if there is no problem. */ |
165 |
return UNZ_OK if there is no problem. */ |
166 |
|
166 |
|
167 |
|
167 |
|
168 |
extern int ZEXPORT unzGetGlobalComment OF((unzFile file, |
168 |
extern int ZEXPORT unzGetGlobalComment _Z_OF((unzFile file, |
169 |
char *szComment, |
169 |
char *szComment, |
170 |
uLong uSizeBuf)); |
170 |
uLong uSizeBuf)); |
171 |
/* |
171 |
/* |
Lines 178-197
Link Here
|
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 |
|
181 |
extern int ZEXPORT unzGoToFirstFile OF((unzFile file)); |
181 |
extern int ZEXPORT unzGoToFirstFile _Z_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 |
|
187 |
extern int ZEXPORT unzGoToNextFile OF((unzFile file)); |
187 |
extern int ZEXPORT unzGoToNextFile _Z_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 |
|
194 |
extern int ZEXPORT unzLocateFile OF((unzFile file, |
194 |
extern int ZEXPORT unzLocateFile _Z_OF((unzFile file, |
195 |
const char *szFileName, |
195 |
const char *szFileName, |
196 |
int iCaseSensitivity)); |
196 |
int iCaseSensitivity)); |
197 |
/* |
197 |
/* |
Lines 223-229
Link Here
|
223 |
|
223 |
|
224 |
/* ****************************************** */ |
224 |
/* ****************************************** */ |
225 |
|
225 |
|
226 |
extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file, |
226 |
extern int ZEXPORT unzGetCurrentFileInfo _Z_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, |
Lines 249-261
Link Here
|
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 |
|
252 |
extern int ZEXPORT unzOpenCurrentFile OF((unzFile file)); |
252 |
extern int ZEXPORT unzOpenCurrentFile _Z_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 |
|
258 |
extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file, |
258 |
extern int ZEXPORT unzOpenCurrentFilePassword _Z_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. |
Lines 263-269
Link Here
|
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 |
|
266 |
extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file, |
266 |
extern int ZEXPORT unzOpenCurrentFile2 _Z_OF((unzFile file, |
267 |
int* method, |
267 |
int* method, |
268 |
int* level, |
268 |
int* level, |
269 |
int raw)); |
269 |
int raw)); |
Lines 276-282
Link Here
|
276 |
but you CANNOT set method parameter as NULL |
276 |
but you CANNOT set method parameter as NULL |
277 |
*/ |
277 |
*/ |
278 |
|
278 |
|
279 |
extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file, |
279 |
extern int ZEXPORT unzOpenCurrentFile3 _Z_OF((unzFile file, |
280 |
int* method, |
280 |
int* method, |
281 |
int* level, |
281 |
int* level, |
282 |
int raw, |
282 |
int raw, |
Lines 291-303
Link Here
|
291 |
*/ |
291 |
*/ |
292 |
|
292 |
|
293 |
|
293 |
|
294 |
extern int ZEXPORT unzCloseCurrentFile OF((unzFile file)); |
294 |
extern int ZEXPORT unzCloseCurrentFile _Z_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 |
|
300 |
extern int ZEXPORT unzReadCurrentFile OF((unzFile file, |
300 |
extern int ZEXPORT unzReadCurrentFile _Z_OF((unzFile file, |
301 |
voidp buf, |
301 |
voidp buf, |
302 |
unsigned len)); |
302 |
unsigned len)); |
303 |
/* |
303 |
/* |
Lines 311-327
Link Here
|
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 |
|
314 |
extern z_off_t ZEXPORT unztell OF((unzFile file)); |
314 |
extern z_off_t ZEXPORT unztell _Z_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 |
|
319 |
extern int ZEXPORT unzeof OF((unzFile file)); |
319 |
extern int ZEXPORT unzeof _Z_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 |
|
324 |
extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file, |
324 |
extern int ZEXPORT unzGetLocalExtrafield _Z_OF((unzFile file, |
325 |
voidp buf, |
325 |
voidp buf, |
326 |
unsigned len)); |
326 |
unsigned len)); |
327 |
/* |
327 |
/* |