~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/libpsi/tools/zip/minizip/unzip.h

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* unzip.h -- IO for uncompress .zip files using zlib 
 
1
/* unzip.h -- IO for uncompress .zip files using zlib
2
2
   Version 0.15 beta, Mar 19th, 1998,
3
3
 
4
4
   Copyright (C) 1998 Gilles Vollant
33
33
 
34
34
 
35
35
*/
36
 
/* for more info about .ZIP format, see 
 
36
/* for more info about .ZIP format, see
37
37
      ftp://ftp.cdrom.com/pub/infozip/doc/appnote-970311-iz.zip
38
38
   PkWare has also a specification at :
39
39
      ftp://ftp.pkware.com/probdesc.zip */
52
52
#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
53
53
/* like the STRICT of WIN32, we define a pointer that cannot be converted
54
54
    from (void*) without cast */
55
 
typedef struct TagunzFile__ { int unused; } unzFile__; 
 
55
typedef struct TagunzFile__ { int unused; } unzFile__;
56
56
typedef unzFile__ *unzFile;
57
57
#else
58
58
typedef voidp unzFile;
69
69
#define UNZ_CRCERROR                    (-105)
70
70
 
71
71
/* tm_unz contain date/time info */
72
 
typedef struct tm_unz_s 
 
72
typedef struct tm_unz_s
73
73
{
74
74
        uInt tm_sec;            /* seconds after the minute - [0,59] */
75
75
        uInt tm_min;            /* minutes after the hour - [0,59] */
98
98
    uLong compression_method;   /* compression method              2 bytes */
99
99
    uLong dosDate;              /* last mod file date in Dos fmt   4 bytes */
100
100
    uLong crc;                  /* crc-32                          4 bytes */
101
 
    uLong compressed_size;      /* compressed size                 4 bytes */ 
102
 
    uLong uncompressed_size;    /* uncompressed size               4 bytes */ 
 
101
    uLong compressed_size;      /* compressed size                 4 bytes */
 
102
    uLong uncompressed_size;    /* uncompressed size               4 bytes */
103
103
    uLong size_filename;        /* filename length                 2 bytes */
104
104
    uLong size_file_extra;      /* extra field length              2 bytes */
105
105
    uLong size_file_comment;    /* file comment length             2 bytes */
176
176
  return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
177
177
*/
178
178
 
179
 
extern int ZEXPORT unzLocateFile OF((unzFile file, 
 
179
extern int ZEXPORT unzLocateFile OF((unzFile file,
180
180
                                     const char *szFileName,
181
181
                                     int iCaseSensitivity));
182
182
/*
227
227
  Return UNZ_CRCERROR if all the file was read but the CRC is not good
228
228
*/
229
229
 
230
 
                                                                                                
231
 
extern int ZEXPORT unzReadCurrentFile OF((unzFile file, 
 
230
 
 
231
extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
232
232
                                          voidp buf,
233
233
                                          unsigned len));
234
234
/*
249
249
 
250
250
extern int ZEXPORT unzeof OF((unzFile file));
251
251
/*
252
 
  return 1 if the end of file was reached, 0 elsewhere 
 
252
  return 1 if the end of file was reached, 0 elsewhere
253
253
*/
254
254
 
255
255
extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
264
264
 
265
265
  if buf!=NULL, len is the size of the buffer, the extra header is copied in
266
266
        buf.
267
 
  the return value is the number of bytes copied in buf, or (if <0) 
 
267
  the return value is the number of bytes copied in buf, or (if <0)
268
268
        the error code
269
269
*/
270
270