Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 424369
Collapse All | Expand All

(-)fakenes-0.5.8-old/src/include/unzip.h (-22 / +22 lines)
Lines 119-127 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 (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)
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 (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 NT computer "c:\\zlib\\zlib111.zip" or on an Unix computer
138
     on a Windows NT computer "c:\\zlib\\zlib111.zip" or on an Unix computer
Lines 143-166 Link Here
143
	   of this unzip package.
143
	   of this unzip package.
144
*/
144
*/
145
145
146
extern int ZEXPORT unzClose OF((unzFile file));
146
extern int ZEXPORT unzClose (unzFile file);
147
/*
147
/*
148
  Close a ZipFile opened with unzipOpen.
148
  Close a ZipFile opened with unzipOpen.
149
  If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
149
  If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
150
    these files MUST be closed with unzipCloseCurrentFile before call unzipClose.
150
    these files MUST be closed with unzipCloseCurrentFile before call unzipClose.
151
  return UNZ_OK if there is no problem. */
151
  return UNZ_OK if there is no problem. */
152
152
153
extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
153
extern int ZEXPORT unzGetGlobalInfo (unzFile file,
154
					unz_global_info *pglobal_info));
154
					unz_global_info *pglobal_info);
155
/*
155
/*
156
  Write info about the ZipFile in the *pglobal_info structure.
156
  Write info about the ZipFile in the *pglobal_info structure.
157
  No preparation of the structure is needed
157
  No preparation of the structure is needed
158
  return UNZ_OK if there is no problem. */
158
  return UNZ_OK if there is no problem. */
159
159
160
160
161
extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
161
extern int ZEXPORT unzGetGlobalComment (unzFile file,
162
										   char *szComment,
162
										   char *szComment,
163
					   uLong uSizeBuf));
163
					   uLong uSizeBuf);
164
/*
164
/*
165
  Get the global comment string of the ZipFile, in the szComment buffer.
165
  Get the global comment string of the ZipFile, in the szComment buffer.
166
  uSizeBuf is the size of the szComment buffer.
166
  uSizeBuf is the size of the szComment buffer.
Lines 171-192 Link Here
171
/***************************************************************************/
171
/***************************************************************************/
172
/* Unzip package allow you browse the directory of the zipfile */
172
/* Unzip package allow you browse the directory of the zipfile */
173
173
174
extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
174
extern int ZEXPORT unzGoToFirstFile (unzFile file);
175
/*
175
/*
176
  Set the current file of the zipfile to the first file.
176
  Set the current file of the zipfile to the first file.
177
  return UNZ_OK if there is no problem
177
  return UNZ_OK if there is no problem
178
*/
178
*/
179
179
180
extern int ZEXPORT unzGoToNextFile OF((unzFile file));
180
extern int ZEXPORT unzGoToNextFile (unzFile file);
181
/*
181
/*
182
  Set the current file of the zipfile to the next file.
182
  Set the current file of the zipfile to the next file.
183
  return UNZ_OK if there is no problem
183
  return UNZ_OK if there is no problem
184
  return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
184
  return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
185
*/
185
*/
186
186
187
extern int ZEXPORT unzLocateFile OF((unzFile file, 
187
extern int ZEXPORT unzLocateFile (unzFile file, 
188
				     const char *szFileName,
188
				     const char *szFileName,
189
				     int iCaseSensitivity));
189
				     int iCaseSensitivity);
190
/*
190
/*
191
  Try locate the file szFileName in the zipfile.
191
  Try locate the file szFileName in the zipfile.
192
  For the iCaseSensitivity signification, see unzStringFileNameCompare
192
  For the iCaseSensitivity signification, see unzStringFileNameCompare
Lines 197-210 Link Here
197
*/
197
*/
198
198
199
199
200
extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
200
extern int ZEXPORT unzGetCurrentFileInfo (unzFile file,
201
					     unz_file_info *pfile_info,
201
					     unz_file_info *pfile_info,
202
					     char *szFileName,
202
					     char *szFileName,
203
					     uLong fileNameBufferSize,
203
					     uLong fileNameBufferSize,
204
					     void *extraField,
204
					     void *extraField,
205
					     uLong extraFieldBufferSize,
205
					     uLong extraFieldBufferSize,
206
					     char *szComment,
206
					     char *szComment,
207
					     uLong commentBufferSize));
207
					     uLong commentBufferSize);
208
/*
208
/*
209
  Get Info about the current file
209
  Get Info about the current file
210
  if pfile_info!=NULL, the *pfile_info structure will contain somes info about
210
  if pfile_info!=NULL, the *pfile_info structure will contain somes info about
Lines 223-244 Link Here
223
   from it, and close it (you can close it before reading all the file)
223
   from it, and close it (you can close it before reading all the file)
224
   */
224
   */
225
225
226
extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
226
extern int ZEXPORT unzOpenCurrentFile (unzFile file);
227
/*
227
/*
228
  Open for reading data the current file in the zipfile.
228
  Open for reading data the current file in the zipfile.
229
  If there is no error, the return value is UNZ_OK.
229
  If there is no error, the return value is UNZ_OK.
230
*/
230
*/
231
231
232
extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
232
extern int ZEXPORT unzCloseCurrentFile (unzFile file);
233
/*
233
/*
234
  Close the file in zip opened with unzOpenCurrentFile
234
  Close the file in zip opened with unzOpenCurrentFile
235
  Return UNZ_CRCERROR if all the file was read but the CRC is not good
235
  Return UNZ_CRCERROR if all the file was read but the CRC is not good
236
*/
236
*/
237
237
238
												
238
												
239
extern int ZEXPORT unzReadCurrentFile OF((unzFile file, 
239
extern int ZEXPORT unzReadCurrentFile (unzFile file, 
240
					  voidp buf,
240
					  voidp buf,
241
					  unsigned len));
241
					  unsigned len);
242
/*
242
/*
243
  Read bytes from the current file (opened by unzOpenCurrentFile)
243
  Read bytes from the current file (opened by unzOpenCurrentFile)
244
  buf contain buffer where data must be copied
244
  buf contain buffer where data must be copied
Lines 250-268 Link Here
250
    (UNZ_ERRNO for IO error, or zLib error for uncompress error)
250
    (UNZ_ERRNO for IO error, or zLib error for uncompress error)
251
*/
251
*/
252
252
253
extern z_off_t ZEXPORT unztell OF((unzFile file));
253
extern z_off_t ZEXPORT unztell (unzFile file);
254
/*
254
/*
255
  Give the current position in uncompressed data
255
  Give the current position in uncompressed data
256
*/
256
*/
257
257
258
extern int ZEXPORT unzeof OF((unzFile file));
258
extern int ZEXPORT unzeof (unzFile file);
259
/*
259
/*
260
  return 1 if the end of file was reached, 0 elsewhere 
260
  return 1 if the end of file was reached, 0 elsewhere 
261
*/
261
*/
262
262
263
extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
263
extern int ZEXPORT unzGetLocalExtrafield (unzFile file,
264
											 voidp buf,
264
											 voidp buf,
265
											 unsigned len));
265
											 unsigned len);
266
/*
266
/*
267
  Read extra field from the current file (opened by unzOpenCurrentFile)
267
  Read extra field from the current file (opened by unzOpenCurrentFile)
268
  This is the local-header version of the extra field (sometimes, there is
268
  This is the local-header version of the extra field (sometimes, there is
(-)fakenes-0.5.8-old/src/unzip.c (-2 / +2 lines)
Lines 500-506 Link Here
500
/*
500
/*
501
  Get Info about the current file in the zipfile, with internal only info
501
  Get Info about the current file in the zipfile, with internal only info
502
*/
502
*/
503
local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file,
503
local int unzlocal_GetCurrentFileInfoInternal (unzFile file,
504
                                                  unz_file_info *pfile_info,
504
                                                  unz_file_info *pfile_info,
505
                                                  unz_file_info_internal 
505
                                                  unz_file_info_internal 
506
                                                  *pfile_info_internal,
506
                                                  *pfile_info_internal,
Lines 509-515 Link Here
509
                                                  void *extraField,
509
                                                  void *extraField,
510
												  uLong extraFieldBufferSize,
510
												  uLong extraFieldBufferSize,
511
                                                  char *szComment,
511
                                                  char *szComment,
512
												  uLong commentBufferSize));
512
												  uLong commentBufferSize);
513
513
514
local int unzlocal_GetCurrentFileInfoInternal (file,
514
local int unzlocal_GetCurrentFileInfoInternal (file,
515
                                              pfile_info,
515
                                              pfile_info,

Return to bug 424369