SimCenterCommon
Common functionality used within different SimCenter projects
zip.h File Reference
#include <zlib.h>
#include "ioapi.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.

Classes

struct  tm_zip_s
 
struct  zip_fileinfo
 

Macros

#define ZIP_OK   (0)
 
#define ZIP_EOF   (0)
 
#define ZIP_ERRNO   (Z_ERRNO)
 
#define ZIP_PARAMERROR   (-102)
 
#define ZIP_BADZIPFILE   (-103)
 
#define ZIP_INTERNALERROR   (-104)
 
#define DEF_MEM_LEVEL   MAX_MEM_LEVEL
 
#define APPEND_STATUS_CREATE   (0)
 
#define APPEND_STATUS_CREATEAFTER   (1)
 
#define APPEND_STATUS_ADDINZIP   (2)
 

Typedefs

typedef voidp zipFile
 
typedef struct tm_zip_s tm_zip
 
typedef const char * zipcharpc
 

Functions

zipFile ZEXPORT zipOpen OF ((const char *pathname, int append))
 
zipFile ZEXPORT zipOpen2 OF ((const char *pathname, int append, zipcharpc *globalcomment, zlib_filefunc_def *pzlib_filefunc_def))
 
int ZEXPORT zipOpenNewFileInZip OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level))
 
int ZEXPORT zipOpenNewFileInZip2 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw))
 
int ZEXPORT zipOpenNewFileInZip3 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCtypting))
 
int ZEXPORT zipWriteInFileInZip OF ((zipFile file, const void *buf, unsigned len))
 
int ZEXPORT zipCloseFileInZip OF ((zipFile file))
 
int ZEXPORT zipCloseFileInZipRaw OF ((zipFile file, uLong uncompressed_size, uLong crc32))
 
int ZEXPORT zipClose OF ((zipFile file, const char *global_comment))
 

Macro Definition Documentation

#define APPEND_STATUS_ADDINZIP   (2)

Definition at line 112 of file zip.h.

#define APPEND_STATUS_CREATE   (0)

Definition at line 110 of file zip.h.

#define APPEND_STATUS_CREATEAFTER   (1)

Definition at line 111 of file zip.h.

#define DEF_MEM_LEVEL   MAX_MEM_LEVEL

Definition at line 81 of file zip.h.

#define ZIP_BADZIPFILE   (-103)

Definition at line 74 of file zip.h.

#define ZIP_EOF   (0)

Definition at line 71 of file zip.h.

#define ZIP_ERRNO   (Z_ERRNO)

Definition at line 72 of file zip.h.

#define ZIP_INTERNALERROR   (-104)

Definition at line 75 of file zip.h.

#define ZIP_OK   (0)

Definition at line 70 of file zip.h.

#define ZIP_PARAMERROR   (-102)

Definition at line 73 of file zip.h.

Typedef Documentation

typedef struct tm_zip_s tm_zip
typedef const char* zipcharpc

Definition at line 107 of file zip.h.

typedef voidp zipFile

Definition at line 67 of file zip.h.

Function Documentation

zipFile ZEXPORT zipOpen OF ( (const char *pathname, int append)  )
zipFile ZEXPORT zipOpen2 OF ( (const char *pathname, int append, zipcharpc *globalcomment, zlib_filefunc_def *pzlib_filefunc_def)  )
int ZEXPORT zipOpenNewFileInZip OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level)  )
int ZEXPORT zipOpenNewFileInZip2 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw)  )
int ZEXPORT zipOpenNewFileInZip3 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCtypting)  )
int ZEXPORT zipWriteInFileInZip OF ( (zipFile file, const void *buf, unsigned len)  )
int ZEXPORT zipCloseFileInZip OF ( (zipFile file)  )
int ZEXPORT zipCloseFileInZipRaw OF ( (zipFile file, uLong uncompressed_size, uLong crc32)  )
int ZEXPORT zipClose OF ( (zipFile file, const char *global_comment)  )