UFO: Alien Invasion
Loading...
Searching...
No Matches
unzip.h File Reference
#include <zlib.h>
#include "ioapi.h"
Include dependency graph for unzip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tm_unz
struct  unz_global_info
struct  unz_file_info
struct  unz_file_pos

Macros

#define NOUNCRYPT
#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)

Typedefs

typedef voidp unzFile

Functions

int ZEXPORT unzStringFileNameCompare OF ((const char *fileName1, const char *fileName2, int iCaseSensitivity))
unzFile ZEXPORT unzOpen OF ((const char *path))
unzFile ZEXPORT unzOpen2 OF ((const char *path, zlib_filefunc_def *pzlib_filefunc_def))
int ZEXPORT unzClose OF ((unzFile file))
int ZEXPORT unzGetGlobalInfo OF ((unzFile file, unz_global_info *pglobal_info))
int ZEXPORT unzGetGlobalComment OF ((unzFile file, char *szComment, uLong uSizeBuf))
int ZEXPORT unzLocateFile OF ((unzFile file, const char *szFileName, int iCaseSensitivity))
int ZEXPORT unzGetFilePos (unzFile file, unz_file_pos *file_pos)
int ZEXPORT unzGoToFilePos (unzFile file, unz_file_pos *file_pos)
int ZEXPORT unzGetCurrentFileInfo OF ((unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize))
int unzSetCurrentFileInfoPosition (unzFile file, unsigned long pos)
int unzGetCurrentFileInfoPosition (unzFile file, unsigned long *pos)
int ZEXPORT unzOpenCurrentFilePassword OF ((unzFile file, const char *password))
int ZEXPORT unzOpenCurrentFile2 OF ((unzFile file, int *method, int *level, int raw))
int ZEXPORT unzOpenCurrentFile3 OF ((unzFile file, int *method, int *level, int raw, const char *password))
int ZEXPORT unzReadCurrentFile OF ((unzFile file, voidp buf, unsigned len))
uLong ZEXPORT unzGetOffset (unzFile file)
int ZEXPORT unzSetOffset (unzFile file, uLong pos)

Macro Definition Documentation

◆ NOUNCRYPT

#define NOUNCRYPT

Definition at line 49 of file unzip.h.

◆ UNZ_BADZIPFILE

#define UNZ_BADZIPFILE   (-103)

◆ UNZ_CRCERROR

#define UNZ_CRCERROR   (-105)

Definition at line 81 of file unzip.h.

Referenced by unzCloseCurrentFile().

◆ UNZ_END_OF_LIST_OF_FILE

#define UNZ_END_OF_LIST_OF_FILE   (-100)

Definition at line 75 of file unzip.h.

Referenced by unzGetFilePos(), unzGoToNextFile(), unzLocateFile(), and unzReadCurrentFile().

◆ UNZ_EOF

#define UNZ_EOF   (0)

Definition at line 77 of file unzip.h.

Referenced by unzlocal_getByte(), and unzReadCurrentFile().

◆ UNZ_ERRNO

◆ UNZ_INTERNALERROR

#define UNZ_INTERNALERROR   (-104)

Definition at line 80 of file unzip.h.

Referenced by unzOpenCurrentFile3().

◆ UNZ_OK

◆ UNZ_PARAMERROR

Typedef Documentation

◆ unzFile

typedef voidp unzFile

Definition at line 70 of file unzip.h.

Function Documentation

◆ OF() [1/12]

int ZEXPORT unzStringFileNameCompare OF ( (const char *fileName1, const char *fileName2, int iCaseSensitivity) )
extern

◆ OF() [2/12]

unzFile ZEXPORT unzOpen OF ( (const char *path) )
extern

References unzOpen().

◆ OF() [3/12]

unzFile ZEXPORT unzOpen2 OF ( (const char *path, zlib_filefunc_def *pzlib_filefunc_def) )
extern

References unzOpen2().

◆ OF() [4/12]

int ZEXPORT unzeof OF ( (unzFile file) )
extern

References unzClose().

◆ OF() [5/12]

int ZEXPORT unzGetGlobalComment OF ( (unzFile file, char *szComment, uLong uSizeBuf) )
extern

◆ OF() [6/12]

int ZEXPORT unzOpenCurrentFilePassword OF ( (unzFile file, const char *password) )
extern

◆ OF() [7/12]

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

References unzLocateFile().

◆ OF() [8/12]

int ZEXPORT unzOpenCurrentFile2 OF ( (unzFile file, int *method, int *level, int raw) )
extern

References level, and unzOpenCurrentFile2().

◆ OF() [9/12]

int ZEXPORT unzOpenCurrentFile3 OF ( (unzFile file, int *method, int *level, int raw, const char *password) )
extern

◆ OF() [10/12]

int ZEXPORT unzGetCurrentFileInfo OF ( (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) )
extern

◆ OF() [11/12]

int ZEXPORT unzGetGlobalInfo OF ( (unzFile file, unz_global_info *pglobal_info) )
extern

References unzGetGlobalInfo().

◆ OF() [12/12]

int ZEXPORT unzGetLocalExtrafield OF ( (unzFile file, voidp buf, unsigned len) )
extern

◆ unzGetCurrentFileInfoPosition()

int unzGetCurrentFileInfoPosition ( unzFile file,
unsigned long * pos )
extern

Definition at line 1450 of file unzip.cpp.

References unz_s::pos_in_central_dir, UNZ_OK, and UNZ_PARAMERROR.

Referenced by FS_LoadPackFile(), and FS_OpenFile().

◆ unzGetFilePos()

◆ unzGetOffset()

uLong ZEXPORT unzGetOffset ( unzFile file)
extern

◆ unzGoToFilePos()

◆ unzSetCurrentFileInfoPosition()

int unzSetCurrentFileInfoPosition ( unzFile file,
unsigned long pos )
extern

◆ unzSetOffset()