[ Home ]

zip.h File Reference

Zip file interface. More...

#include "../common/platform.h"

Include dependency graph for zip.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  zipHead_s

Defines

#define CM_NO_COMPRESSION   0
#define CM_SHRUNK   1
#define CM_REDUCED_F1   2
#define CM_REDUCED_F2   3
#define CM_REDUCED_F3   4
#define CM_REDUCED_F4   5
#define CM_IMPLODED   6
#define CM_RESERVED_7   7
#define CM_DEFLATED   8
#define CM_DEFLATE64   9
#define CM_IMPLODING   10
#define CM_RESERVED_11   11
#define CM_BZIP2   12
#define VMB_MSDOS_FAT   0
#define VMB_AMIGA   1
#define VMB_OPENVMS   2
#define VMB_UNIX   3
#define VMB_VM_CMS   4
#define VMB_ATARI_ST   5
#define VMB_OS_2_HPFS   6
#define VMB_MACINTOSH   7
#define VMB_Z_SYSTEM   8
#define VMB_CP_M   9
#define VMB_WINDOWS_NTFS   10
#define VMB_MVS_OS_390_Z_OS   11
#define VMB_VSE   12
#define VMB_ACORN_RISC   13
#define VMB_VFAT   14
#define VMB_ALTERNATE_MVS   15
#define VMB_BEOS   16
#define VMB_TANDEM   17
#define VMB_OS_400   18
#define VMB_OS_X_DARWIN   19

Typedefs

typedef struct zipHead_s zipHead_t

Functions

wtBoolean zip_WriteLocalChunk (zipHead_t *z, FILE *f)
 Write local header to file.
wtBoolean zip_WriteCentralChunk (zipHead_t *z, FILE *f)
 Write central header to file.
wtBoolean zip_WriteEndChunk (W16 num, W32 size, W32 offset, W16 len, char *comment, FILE *f)
 Write end of central directory data to file.


Detailed Description

Zip file interface.

Author:
Michael Liebscher
Date:
2004-2005

Function Documentation

wtBoolean zip_WriteCentralChunk ( zipHead_t *  z,
FILE *  f 
)

Write central header to file.

Parameters:
[in] z zip entry to write central header for.
[in] f File to write to.
Returns:
On success true, otherwise false.

Here is the caller graph for this function:

wtBoolean zip_WriteEndChunk ( W16  num,
W32  size,
W32  offset,
W16  len,
char *  comment,
FILE *  f 
)

Write end of central directory data to file.

Parameters:
[in] num Number of entries in central directory.
[in] size Size of central directory in bytes.
[in] offset Offset of central directory.
[in] len Length of zip file comment in bytes (0 if none).
[in] comment Zip file comment if len != 0.
[in] f File to write to.
Returns:
On success true, otherwise false.

Here is the caller graph for this function:

wtBoolean zip_WriteLocalChunk ( zipHead_t *  z,
FILE *  f 
)

Write local header to file.

Parameters:
[in] z zip entry to write local header for.
[in] f File to write to.
Returns:
On success true, otherwise false.

Here is the caller graph for this function: