#include <zlib.h>
#include "ioapi.h"
Go to the source code of this file.
Data Structures | |
struct | tm_unz_s |
struct | unz_global_info_s |
struct | unz_file_info_s |
struct | unz_file_pos_s |
Defines | |
#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 |
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_pos_s | unz_file_pos |
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) |
#define UNZ_BADZIPFILE (-103) |
Definition at line 80 of file unzip.h.
Referenced by unzlocal_CheckCurrentFileCoherencyHeader(), unzlocal_GetCurrentFileInfoInternal(), unzOpen2(), and unzOpenCurrentFile3().
#define UNZ_CRCERROR (-105) |
Definition at line 82 of file unzip.h.
Referenced by unzCloseCurrentFile().
#define UNZ_END_OF_LIST_OF_FILE (-100) |
Definition at line 76 of file unzip.h.
Referenced by unzGetFilePos(), unzGoToNextFile(), unzLocateFile(), and unzReadCurrentFile().
#define UNZ_EOF (0) |
Definition at line 78 of file unzip.h.
Referenced by unzlocal_getByte(), and unzReadCurrentFile().
#define UNZ_ERRNO (Z_ERRNO) |
Definition at line 77 of file unzip.h.
Referenced by unzGetGlobalComment(), unzGetLocalExtrafield(), unzlocal_CheckCurrentFileCoherencyHeader(), unzlocal_getByte(), unzlocal_GetCurrentFileInfoInternal(), unzOpen2(), and unzReadCurrentFile().
#define UNZ_INTERNALERROR (-104) |
Definition at line 81 of file unzip.h.
Referenced by unzOpenCurrentFile3().
#define UNZ_OK (0) |
Definition at line 75 of file unzip.h.
Referenced by FS_LoadPackFile(), FS_OpenFileSingle(), unzClose(), unzCloseCurrentFile(), unzGetCurrentFileInfoPosition(), unzGetFilePos(), unzGetGlobalInfo(), unzGoToFilePos(), unzGoToFirstFile(), unzGoToNextFile(), unzlocal_CheckCurrentFileCoherencyHeader(), unzlocal_getByte(), unzlocal_GetCurrentFileInfoInternal(), unzlocal_getLong(), unzlocal_getShort(), unzLocateFile(), unzOpen2(), unzOpenCurrentFile3(), unzReadCurrentFile(), unzSetCurrentFileInfoPosition(), and unzSetOffset().
#define UNZ_PARAMERROR (-102) |
Definition at line 79 of file unzip.h.
Referenced by unzClose(), unzCloseCurrentFile(), unzeof(), unzGetCurrentFileInfoPosition(), unzGetFilePos(), unzGetGlobalComment(), unzGetGlobalInfo(), unzGetLocalExtrafield(), unzGetOffset(), unzGoToFilePos(), unzGoToFirstFile(), unzGoToNextFile(), unzlocal_GetCurrentFileInfoInternal(), unzLocateFile(), unzOpenCurrentFile3(), unzReadCurrentFile(), unzSetCurrentFileInfoPosition(), unzSetOffset(), and unztell().
typedef struct unz_file_info_s unz_file_info |
typedef struct unz_file_pos_s unz_file_pos |
typedef struct unz_global_info_s unz_global_info |
int ZEXPORT unzOpenCurrentFile3 OF | ( | (unzFile file, int *method, int *level, int raw, const char *password) | ) |
int ZEXPORT unzGetCurrentFileInfo OF | ( | (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) | ) |
int ZEXPORT unzLocateFile OF | ( | (unzFile file, const char *szFileName, int iCaseSensitivity) | ) |
int ZEXPORT unzGetGlobalComment OF | ( | (unzFile file, char *szComment, uLong uSizeBuf) | ) |
int ZEXPORT unzGetGlobalInfo OF | ( | (unzFile file, unz_global_info *pglobal_info) | ) |
int ZEXPORT unzeof OF | ( | (unzFile file) | ) |
unzFile ZEXPORT unzOpen2 OF | ( | (const char *path, zlib_filefunc_def *pzlib_filefunc_def) | ) |
unzFile ZEXPORT unzOpen OF | ( | (const char *path) | ) |
int ZEXPORT unzStringFileNameCompare OF | ( | (const char *fileName1, const char *fileName2, int iCaseSensitivity) | ) |
int unzGetCurrentFileInfoPosition | ( | unzFile | file, | |
unsigned long * | pos | |||
) |
Definition at line 1630 of file unzip.c.
References unz_s::pos_in_central_dir, UNZ_OK, and UNZ_PARAMERROR.
Referenced by FS_LoadPackFile(), and FS_OpenFileSingle().
int ZEXPORT unzGetFilePos | ( | unzFile | file, | |
unz_file_pos * | file_pos | |||
) |
Definition at line 907 of file unzip.c.
References unz_s::current_file_ok, unz_s::num_file, unz_file_pos_s::num_of_file, unz_s::pos_in_central_dir, unz_file_pos_s::pos_in_zip_directory, UNZ_END_OF_LIST_OF_FILE, UNZ_OK, and UNZ_PARAMERROR.
uLong ZEXPORT unzGetOffset | ( | unzFile | file | ) |
Definition at line 1568 of file unzip.c.
References unz_s::current_file_ok, unz_s::gi, unz_s::num_file, unz_global_info_s::number_entry, unz_s::pos_in_central_dir, and UNZ_PARAMERROR.
int ZEXPORT unzGoToFilePos | ( | unzFile | file, | |
unz_file_pos * | file_pos | |||
) |
Definition at line 925 of file unzip.c.
References unz_s::cur_file_info, unz_s::cur_file_info_internal, unz_s::current_file_ok, unz_s::num_file, unz_file_pos_s::num_of_file, unz_s::pos_in_central_dir, unz_file_pos_s::pos_in_zip_directory, UNZ_OK, UNZ_PARAMERROR, and unzlocal_GetCurrentFileInfoInternal().
int unzSetCurrentFileInfoPosition | ( | unzFile | file, | |
unsigned long | pos | |||
) |
Definition at line 1609 of file unzip.c.
References unz_s::cur_file_info, unz_s::cur_file_info_internal, unz_s::current_file_ok, unz_s::pos_in_central_dir, UNZ_OK, UNZ_PARAMERROR, and unzlocal_GetCurrentFileInfoInternal().
Referenced by FS_Seek().
int ZEXPORT unzSetOffset | ( | unzFile | file, | |
uLong | pos | |||
) |
Definition at line 1584 of file unzip.c.
References unz_s::cur_file_info, unz_s::cur_file_info_internal, unz_s::current_file_ok, unz_s::gi, unz_s::num_file, unz_global_info_s::number_entry, unz_s::pos_in_central_dir, UNZ_OK, UNZ_PARAMERROR, and unzlocal_GetCurrentFileInfoInternal().