misc/quazip/zip.h
author koda
Sun, 11 Nov 2012 19:11:47 +0100
branchwebgl
changeset 8035 68ec3138c16d
parent 7889 57b117d441b9
permissions -rw-r--r--
comments and runtime list of files to convert and compile
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7889
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     1
/* zip.h -- IO for compress .zip files using zlib
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     2
   Version 1.01e, February 12th, 2005
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     3
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     4
   Copyright (C) 1998-2005 Gilles Vollant
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     5
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     6
   This unzip package allow creates .ZIP file, compatible with PKZip 2.04g
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     7
     WinZip, InfoZip tools and compatible.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     8
   Multi volume ZipFile (span) are not supported.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
     9
   Encryption compatible with pkzip 2.04g only supported
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    10
   Old compressions used by old PKZip 1.x are not supported
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    11
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    12
  For uncompress .zip file, look at unzip.h
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    13
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    14
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    15
   I WAIT FEEDBACK at mail info@winimage.com
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    16
   Visit also http://www.winimage.com/zLibDll/unzip.html for evolution
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    17
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    18
   Condition of use and distribution are the same than zlib :
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    19
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    20
  This software is provided 'as-is', without any express or implied
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    21
  warranty.  In no event will the authors be held liable for any damages
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    22
  arising from the use of this software.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    23
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    24
  Permission is granted to anyone to use this software for any purpose,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    25
  including commercial applications, and to alter it and redistribute it
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    26
  freely, subject to the following restrictions:
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    27
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    28
  1. The origin of this software must not be misrepresented; you must not
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    29
     claim that you wrote the original software. If you use this software
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    30
     in a product, an acknowledgment in the product documentation would be
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    31
     appreciated but is not required.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    32
  2. Altered source versions must be plainly marked as such, and must not be
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    33
     misrepresented as being the original software.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    34
  3. This notice may not be removed or altered from any source distribution.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    35
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    36
   Modified by Sergey A. Tachenov to integrate with Qt.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    37
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    38
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    39
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    40
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    41
/* for more info about .ZIP format, see
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    42
      http://www.info-zip.org/pub/infozip/doc/appnote-981119-iz.zip
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    43
      http://www.info-zip.org/pub/infozip/doc/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    44
   PkWare has also a specification at :
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    45
      ftp://ftp.pkware.com/probdesc.zip
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    46
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    47
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    48
#ifndef _zip_H
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    49
#define _zip_H
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    50
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    51
#ifdef __cplusplus
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    52
extern "C" {
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    53
#endif
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    54
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    55
#ifndef _ZLIB_H
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    56
#include "zlib.h"
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    57
#endif
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    58
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    59
#ifndef _ZLIBIOAPI_H
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    60
#include "ioapi.h"
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    61
#endif
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    62
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    63
#if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    64
/* like the STRICT of WIN32, we define a pointer that cannot be converted
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    65
    from (void*) without cast */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    66
typedef struct TagzipFile__ { int unused; } zipFile__;
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    67
typedef zipFile__ *zipFile;
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    68
#else
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    69
typedef voidp zipFile;
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    70
#endif
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    71
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    72
#define ZIP_OK                          (0)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    73
#define ZIP_EOF                         (0)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    74
#define ZIP_ERRNO                       (Z_ERRNO)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    75
#define ZIP_PARAMERROR                  (-102)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    76
#define ZIP_BADZIPFILE                  (-103)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    77
#define ZIP_INTERNALERROR               (-104)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    78
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    79
#ifndef DEF_MEM_LEVEL
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    80
#  if MAX_MEM_LEVEL >= 8
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    81
#    define DEF_MEM_LEVEL 8
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    82
#  else
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    83
#    define DEF_MEM_LEVEL  MAX_MEM_LEVEL
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    84
#  endif
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    85
#endif
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    86
/* default memLevel */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    87
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    88
/* tm_zip contain date/time info */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    89
typedef struct tm_zip_s
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    90
{
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    91
    uInt tm_sec;            /* seconds after the minute - [0,59] */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    92
    uInt tm_min;            /* minutes after the hour - [0,59] */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    93
    uInt tm_hour;           /* hours since midnight - [0,23] */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    94
    uInt tm_mday;           /* day of the month - [1,31] */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    95
    uInt tm_mon;            /* months since January - [0,11] */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    96
    uInt tm_year;           /* years - [1980..2044] */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    97
} tm_zip;
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    98
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
    99
typedef struct
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   100
{
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   101
    tm_zip      tmz_date;       /* date in understandable format           */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   102
    uLong       dosDate;       /* if dos_date == 0, tmu_date is used      */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   103
/*    uLong       flag;        */   /* general purpose bit flag        2 bytes */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   104
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   105
    uLong       internal_fa;    /* internal file attributes        2 bytes */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   106
    uLong       external_fa;    /* external file attributes        4 bytes */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   107
} zip_fileinfo;
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   108
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   109
typedef const char* zipcharpc;
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   110
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   111
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   112
#define APPEND_STATUS_CREATE        (0)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   113
#define APPEND_STATUS_CREATEAFTER   (1)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   114
#define APPEND_STATUS_ADDINZIP      (2)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   115
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   116
extern zipFile ZEXPORT zipOpen OF((voidpf file, int append));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   117
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   118
  Create a zipfile.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   119
     file is whatever the IO API accepts. For Qt IO API it's a pointer to
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   120
       QIODevice. For fopen() IO API it's a file name (const char*).
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   121
     if the file pathname exist and append==APPEND_STATUS_CREATEAFTER, the zip
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   122
       will be created at the end of the file.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   123
         (useful if the file contain a self extractor code)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   124
     if the file pathname exist and append==APPEND_STATUS_ADDINZIP, we will
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   125
       add files in existing zip (be sure you don't add file that doesn't exist)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   126
     If the zipfile cannot be opened, the return value is NULL.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   127
     Else, the return value is a zipFile Handle, usable with other function
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   128
       of this zip package.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   129
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   130
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   131
/* Note : there is no delete function into a zipfile.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   132
   If you want delete file into a zipfile, you must open a zipfile, and create another
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   133
   Of couse, you can use RAW reading and writing to copy the file you did not want delte
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   134
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   135
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   136
extern zipFile ZEXPORT zipOpen2 OF((voidpf file,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   137
                                   int append,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   138
                                   zipcharpc* globalcomment,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   139
                                   zlib_filefunc_def* pzlib_filefunc_def));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   140
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   141
extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   142
                       const char* filename,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   143
                       const zip_fileinfo* zipfi,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   144
                       const void* extrafield_local,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   145
                       uInt size_extrafield_local,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   146
                       const void* extrafield_global,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   147
                       uInt size_extrafield_global,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   148
                       const char* comment,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   149
                       int method,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   150
                       int level));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   151
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   152
  Open a file in the ZIP for writing.
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   153
  filename : the filename in zip (if NULL, '-' without quote will be used
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   154
  *zipfi contain supplemental information
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   155
  if extrafield_local!=NULL and size_extrafield_local>0, extrafield_local
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   156
    contains the extrafield data the the local header
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   157
  if extrafield_global!=NULL and size_extrafield_global>0, extrafield_global
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   158
    contains the extrafield data the the local header
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   159
  if comment != NULL, comment contain the comment string
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   160
  method contain the compression method (0 for store, Z_DEFLATED for deflate)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   161
  level contain the level of compression (can be Z_DEFAULT_COMPRESSION)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   162
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   163
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   164
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   165
extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   166
                                            const char* filename,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   167
                                            const zip_fileinfo* zipfi,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   168
                                            const void* extrafield_local,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   169
                                            uInt size_extrafield_local,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   170
                                            const void* extrafield_global,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   171
                                            uInt size_extrafield_global,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   172
                                            const char* comment,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   173
                                            int method,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   174
                                            int level,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   175
                                            int raw));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   176
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   177
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   178
  Same than zipOpenNewFileInZip, except if raw=1, we write raw file
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   179
 */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   180
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   181
extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   182
                                            const char* filename,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   183
                                            const zip_fileinfo* zipfi,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   184
                                            const void* extrafield_local,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   185
                                            uInt size_extrafield_local,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   186
                                            const void* extrafield_global,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   187
                                            uInt size_extrafield_global,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   188
                                            const char* comment,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   189
                                            int method,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   190
                                            int level,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   191
                                            int raw,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   192
                                            int windowBits,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   193
                                            int memLevel,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   194
                                            int strategy,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   195
                                            const char* password,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   196
                                            uLong crcForCtypting));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   197
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   198
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   199
  Same than zipOpenNewFileInZip2, except
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   200
    windowBits,memLevel,,strategy : see parameter strategy in deflateInit2
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   201
    password : crypting password (NULL for no crypting)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   202
    crcForCtypting : crc of file to compress (needed for crypting)
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   203
 */
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   204
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   205
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   206
extern int ZEXPORT zipWriteInFileInZip OF((zipFile file,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   207
                       const void* buf,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   208
                       unsigned len));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   209
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   210
  Write data in the zipfile
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   211
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   212
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   213
extern int ZEXPORT zipCloseFileInZip OF((zipFile file));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   214
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   215
  Close the current file in the zipfile
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   216
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   217
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   218
extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   219
                                            uLong uncompressed_size,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   220
                                            uLong crc32));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   221
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   222
  Close the current file in the zipfile, for fiel opened with
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   223
    parameter raw=1 in zipOpenNewFileInZip2
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   224
  uncompressed_size and crc32 are value for the uncompressed size
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   225
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   226
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   227
extern int ZEXPORT zipClose OF((zipFile file,
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   228
                const char* global_comment));
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   229
/*
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   230
  Close the zipfile
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   231
*/
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   232
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   233
#ifdef __cplusplus
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   234
}
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   235
#endif
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   236
57b117d441b9 consistent line endings
nemo
parents: 5752
diff changeset
   237
#endif /* _zip_H */