doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
Unzip.h File Reference

Go to the source code of this file.

Classes

struct  tm_unz_s
 
struct  unz_global_info_s
 
struct  unz_file_info_s
 
struct  unz_file_info_internal_s
 
struct  z_stream_s
 
struct  file_in_zip_read_info_s
 
struct  unz_s
 

Macros

#define UNZ_OK   (0)
 
#define UNZ_END_OF_LIST_OF_FILE   (-100)
 
#define UNZ_ERRNO   (Z_ERRNO)
 
#define UNZ_EOF   (0)
 
#define UNZ_PARAMERROR   (-102)
 
#define UNZ_BADZIPFILE   (-103)
 
#define UNZ_INTERNALERROR   (-104)
 
#define UNZ_CRCERROR   (-105)
 
#define UNZ_CASESENSITIVE   1
 
#define UNZ_NOTCASESENSITIVE   2
 
#define UNZ_OSDEFAULTCASE   0
 

Typedefs

typedef voidunzFile
 
typedef struct tm_unz_s tm_unz
 
typedef struct unz_global_info_s unz_global_info
 
typedef struct unz_file_info_s unz_file_info
 
typedef struct
unz_file_info_internal_s 
unz_file_info_internal
 
typedef void *(* alloc_func )(void *opaque, unsigned int items, unsigned int size)
 
typedef void(* free_func )(void *opaque, void *address)
 
typedef struct z_stream_s z_stream
 
typedef z_streamz_streamp
 

Functions

int unzStringFileNameCompare (const char *fileName1, const char *fileName2, int iCaseSensitivity)
 
unzFile unzOpen (const char *path)
 
unzFile unzReOpen (const char *path, unzFile file)
 
int unzClose (unzFile file)
 
int unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info)
 
int unzGetGlobalComment (unzFile file, char *szComment, unsigned long uSizeBuf)
 
int unzGoToFirstFile (unzFile file)
 
int unzGoToNextFile (unzFile file)
 
int unzGetCurrentFileInfoPosition (unzFile file, unsigned long *pos)
 
int unzSetCurrentFileInfoPosition (unzFile file, unsigned long pos)
 
int unzLocateFile (unzFile file, const char *szFileName, int iCaseSensitivity)
 
int unzGetCurrentFileInfo (unzFile file, unz_file_info *pfile_info, char *szFileName, unsigned long fileNameBufferSize, void *extraField, unsigned long extraFieldBufferSize, char *szComment, unsigned long commentBufferSize)
 
int unzOpenCurrentFile (unzFile file)
 
int unzCloseCurrentFile (unzFile file)
 
int unzReadCurrentFile (unzFile file, void *buf, unsigned len)
 
long unztell (unzFile file)
 
int unzeof (unzFile file)
 
int unzGetLocalExtrafield (unzFile file, void *buf, unsigned len)
 

Macro Definition Documentation

#define UNZ_BADZIPFILE   (-103)

Definition at line 170 of file Unzip.h.

#define UNZ_CASESENSITIVE   1

Definition at line 174 of file Unzip.h.

#define UNZ_CRCERROR   (-105)

Definition at line 172 of file Unzip.h.

#define UNZ_END_OF_LIST_OF_FILE   (-100)

Definition at line 166 of file Unzip.h.

#define UNZ_EOF   (0)

Definition at line 168 of file Unzip.h.

#define UNZ_ERRNO   (Z_ERRNO)

Definition at line 167 of file Unzip.h.

#define UNZ_INTERNALERROR   (-104)

Definition at line 171 of file Unzip.h.

#define UNZ_NOTCASESENSITIVE   2

Definition at line 175 of file Unzip.h.

#define UNZ_OK   (0)

Definition at line 165 of file Unzip.h.

#define UNZ_OSDEFAULTCASE   0

Definition at line 176 of file Unzip.h.

#define UNZ_PARAMERROR   (-102)

Definition at line 169 of file Unzip.h.

Typedef Documentation

typedef void*(* alloc_func)(void *opaque, unsigned int items, unsigned int size)

Definition at line 90 of file Unzip.h.

typedef void(* free_func)(void *opaque, void *address)

Definition at line 91 of file Unzip.h.

typedef struct tm_unz_s tm_unz
typedef void* unzFile

Definition at line 39 of file Unzip.h.

typedef struct z_stream_s z_stream
typedef z_stream* z_streamp

Definition at line 116 of file Unzip.h.

Function Documentation

int unzClose ( unzFile  file)

Definition at line 1404 of file Unzip.cpp.

int unzCloseCurrentFile ( unzFile  file)

Definition at line 2172 of file Unzip.cpp.

int unzeof ( unzFile  file)

Definition at line 2096 of file Unzip.cpp.

int unzGetCurrentFileInfo ( unzFile  file,
unz_file_info pfile_info,
char *  szFileName,
unsigned long  fileNameBufferSize,
void extraField,
unsigned long  extraFieldBufferSize,
char *  szComment,
unsigned long  commentBufferSize 
)

Definition at line 1612 of file Unzip.cpp.

int unzGetCurrentFileInfoPosition ( unzFile  file,
unsigned long *  pos 
)

Definition at line 1675 of file Unzip.cpp.

int unzGetGlobalComment ( unzFile  file,
char *  szComment,
unsigned long  uSizeBuf 
)

Definition at line 2213 of file Unzip.cpp.

int unzGetGlobalInfo ( unzFile  file,
unz_global_info pglobal_info 
)

Definition at line 1424 of file Unzip.cpp.

int unzGetLocalExtrafield ( unzFile  file,
void buf,
unsigned  len 
)

Definition at line 2128 of file Unzip.cpp.

int unzGoToFirstFile ( unzFile  file)

Definition at line 1627 of file Unzip.cpp.

int unzGoToNextFile ( unzFile  file)

Definition at line 1648 of file Unzip.cpp.

int unzLocateFile ( unzFile  file,
const char *  szFileName,
int  iCaseSensitivity 
)

Definition at line 1716 of file Unzip.cpp.

unzFile unzOpen ( const char *  path)

Definition at line 1309 of file Unzip.cpp.

int unzOpenCurrentFile ( unzFile  file)

Definition at line 1852 of file Unzip.cpp.

int unzReadCurrentFile ( unzFile  file,
void buf,
unsigned  len 
)

Definition at line 1952 of file Unzip.cpp.

unzFile unzReOpen ( const char *  path,
unzFile  file 
)

Definition at line 1282 of file Unzip.cpp.

int unzSetCurrentFileInfoPosition ( unzFile  file,
unsigned long  pos 
)

Definition at line 1691 of file Unzip.cpp.

int unzStringFileNameCompare ( const char *  fileName1,
const char *  fileName2,
int  iCaseSensitivity 
)

Definition at line 1210 of file Unzip.cpp.

long unztell ( unzFile  file)

Definition at line 2077 of file Unzip.cpp.