GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
unzip.h File Reference
#include <zlib.h>
+ Include dependency graph for unzip.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  zlib_filefunc_def
 
struct  tm_unz
 
struct  unz_global_info
 
struct  unz_file_info
 
struct  unz_file_info_internal
 
struct  file_in_zip_read_info_s
 
struct  unz_s
 
struct  unz_file_pos
 

Macros

#define OF(x)   x
 
#define ZCALLBACK
 
#define ZLIB_FILEFUNC_SEEK_CUR   (1)
 
#define ZLIB_FILEFUNC_SEEK_END   (2)
 
#define ZLIB_FILEFUNC_SEEK_SET   (0)
 
#define ZLIB_FILEFUNC_MODE_READ   (1)
 
#define ZLIB_FILEFUNC_MODE_WRITE   (2)
 
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)
 
#define ZLIB_FILEFUNC_MODE_EXISTING   (4)
 
#define ZLIB_FILEFUNC_MODE_CREATE   (8)
 
#define ZREAD(filefunc, filestream, buf, size)   ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
 
#define ZWRITE(filefunc, filestream, buf, size)   ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
 
#define ZTELL(filefunc, filestream)   ((*((filefunc).ztell_file))((filefunc).opaque,filestream))
 
#define ZSEEK(filefunc, filestream, pos, mode)   ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
 
#define ZCLOSE(filefunc, filestream)   ((*((filefunc).zclose_file))((filefunc).opaque,filestream))
 
#define ZERROR(filefunc, filestream)   ((*((filefunc).zerror_file))((filefunc).opaque,filestream))
 
#define UNZ_BUFSIZE   (16384)
 
#define UNZ_MAXFILENAMEINZIP   (256)
 
#define ALLOC(size)   (gf_malloc(size))
 
#define TRYFREE(p)   {if (p) gf_free(p);}
 
#define SIZECENTRALDIRITEM   (0x2e)
 
#define SIZEZIPLOCALHEADER   (0x1e)
 
#define BUFREADCOMMENT   (0x400)
 
#define WRITEBUFFERSIZE   (8192)
 
#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 voidpf(* open_file_func )(voidpf opaque, const char *filename, int mode)
 
typedef uLong(* read_file_func )(voidpf opaque, voidpf stream, void *buf, uLong size)
 
typedef uLong(* write_file_func )(voidpf opaque, voidpf stream, const void *buf, uLong size)
 
typedef long(* tell_file_func )(voidpf opaque, voidpf stream)
 
typedef long(* seek_file_func )(voidpf opaque, voidpf stream, uLong offset, int origin)
 
typedef int(* close_file_func )(voidpf opaque, voidpf stream)
 
typedef int(* testerror_file_func )(voidpf opaque, voidpf stream)
 
typedef voidp unzFile
 

Functions

void fill_fopen_filefunc (zlib_filefunc_def *pzlib_filefunc_def)
 
int ZEXPORT unzStringFileNameCompare (const char *fileName1, const char *fileName2, int iCaseSensitivity)
 
unzFile ZEXPORT unzOpen (const char *path)
 
unzFile ZEXPORT unzOpen2 (const char *path, zlib_filefunc_def *pzlib_filefunc_def)
 
int ZEXPORT unzClose (unzFile file)
 
int ZEXPORT unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info)
 
int ZEXPORT unzGetGlobalComment (unzFile file, char *szComment, uLong uSizeBuf)
 
int ZEXPORT unzGoToFirstFile (unzFile file)
 
int ZEXPORT unzGoToNextFile (unzFile file)
 
int ZEXPORT unzLocateFile (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 (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
 
int ZEXPORT unzOpenCurrentFile (unzFile file)
 
int ZEXPORT unzOpenCurrentFilePassword (unzFile file, const char *password)
 
int ZEXPORT unzOpenCurrentFile2 (unzFile file, int *method, int *level, int raw)
 
int ZEXPORT unzOpenCurrentFile3 (unzFile file, int *method, int *level, int raw, const char *password)
 
int ZEXPORT unzCloseCurrentFile (unzFile file)
 
int ZEXPORT unzReadCurrentFile (unzFile file, voidp buf, unsigned len)
 
z_off_t ZEXPORT unztell (unzFile file)
 
int ZEXPORT unzeof (unzFile file)
 
int ZEXPORT unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len)
 
uLong ZEXPORT unzGetOffset (unzFile file)
 
int ZEXPORT unzSetOffset (unzFile file, uLong pos)
 
int gf_unzip_probe (const char *zipfilename)
 

Data Structure Documentation

struct zlib_filefunc_def
+ Collaboration diagram for zlib_filefunc_def:
Data Fields
open_file_func zopen_file
read_file_func zread_file
write_file_func zwrite_file
tell_file_func ztell_file
seek_file_func zseek_file
close_file_func zclose_file
testerror_file_func zerror_file
voidpf opaque
struct tm_unz
+ Collaboration diagram for tm_unz:
Data Fields
uInt tm_sec
uInt tm_min
uInt tm_hour
uInt tm_mday
uInt tm_mon
uInt tm_year
struct unz_global_info
+ Collaboration diagram for unz_global_info:
Data Fields
uLong number_entry
uLong size_comment
struct unz_file_info
+ Collaboration diagram for unz_file_info:
Data Fields
uLong version
uLong version_needed
uLong flag
uLong compression_method
uLong dosDate
uLong crc
uLong compressed_size
uLong uncompressed_size
uLong size_filename
uLong size_file_extra
uLong size_file_comment
uLong disk_num_start
uLong internal_fa
uLong external_fa
tm_unz tmu_date
struct unz_file_info_internal
+ Collaboration diagram for unz_file_info_internal:
Data Fields
uLong offset_curfile
struct file_in_zip_read_info_s
+ Collaboration diagram for file_in_zip_read_info_s:
Data Fields
char * read_buffer
z_stream stream
uLong pos_in_zipfile
uLong stream_initialised
uLong offset_local_extrafield
uInt size_local_extrafield
uLong pos_local_extrafield
uLong crc32
uLong crc32_wait
uLong rest_read_compressed
uLong rest_read_uncompressed
zlib_filefunc_def z_filefunc
voidpf filestream
uLong compression_method
uLong byte_before_the_zipfile
int raw
struct unz_s
+ Collaboration diagram for unz_s:
Data Fields
zlib_filefunc_def z_filefunc
voidpf filestream
unz_global_info gi
uLong byte_before_the_zipfile
uLong num_file
uLong pos_in_central_dir
uLong current_file_ok
uLong central_pos
uLong size_central_dir
uLong offset_central_dir
unz_file_info cur_file_info
unz_file_info_internal cur_file_info_internal
file_in_zip_read_info_s * pfile_in_zip_read
int encrypted
unsigned long keys[3]
const unsigned long * pcrc_32_tab
struct unz_file_pos
+ Collaboration diagram for unz_file_pos:
Data Fields
uLong pos_in_zip_directory
uLong num_of_file

Macro Definition Documentation

#define OF (   x)    x
#define ZCALLBACK
#define ZLIB_FILEFUNC_SEEK_CUR   (1)
#define ZLIB_FILEFUNC_SEEK_END   (2)
#define ZLIB_FILEFUNC_SEEK_SET   (0)
#define ZLIB_FILEFUNC_MODE_READ   (1)
#define ZLIB_FILEFUNC_MODE_WRITE   (2)
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)
#define ZLIB_FILEFUNC_MODE_EXISTING   (4)
#define ZLIB_FILEFUNC_MODE_CREATE   (8)
#define ZREAD (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
#define ZWRITE (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
#define ZTELL (   filefunc,
  filestream 
)    ((*((filefunc).ztell_file))((filefunc).opaque,filestream))
#define ZSEEK (   filefunc,
  filestream,
  pos,
  mode 
)    ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
#define ZCLOSE (   filefunc,
  filestream 
)    ((*((filefunc).zclose_file))((filefunc).opaque,filestream))
#define ZERROR (   filefunc,
  filestream 
)    ((*((filefunc).zerror_file))((filefunc).opaque,filestream))
#define UNZ_BUFSIZE   (16384)
#define UNZ_MAXFILENAMEINZIP   (256)
#define ALLOC (   size)    (gf_malloc(size))
#define TRYFREE (   p)    {if (p) gf_free(p);}
#define SIZECENTRALDIRITEM   (0x2e)
#define SIZEZIPLOCALHEADER   (0x1e)
#define BUFREADCOMMENT   (0x400)
#define WRITEBUFFERSIZE   (8192)
#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)

Typedef Documentation

typedef voidpf( * open_file_func)(voidpf opaque, const char *filename, int mode)
typedef uLong( * read_file_func)(voidpf opaque, voidpf stream, void *buf, uLong size)
typedef uLong( * write_file_func)(voidpf opaque, voidpf stream, const void *buf, uLong size)
typedef long( * tell_file_func)(voidpf opaque, voidpf stream)
typedef long( * seek_file_func)(voidpf opaque, voidpf stream, uLong offset, int origin)
typedef int( * close_file_func)(voidpf opaque, voidpf stream)
typedef int( * testerror_file_func)(voidpf opaque, voidpf stream)
typedef voidp unzFile

Function Documentation

void fill_fopen_filefunc ( zlib_filefunc_def pzlib_filefunc_def)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT unzStringFileNameCompare ( const char *  fileName1,
const char *  fileName2,
int  iCaseSensitivity 
)
unzFile ZEXPORT unzOpen ( const char *  path)
unzFile ZEXPORT unzOpen2 ( const char *  path,
zlib_filefunc_def pzlib_filefunc_def 
)
int ZEXPORT unzClose ( unzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT unzGetGlobalInfo ( unzFile  file,
unz_global_info pglobal_info 
)

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT unzGoToNextFile ( unzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT unzLocateFile ( 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 ( unzFile  file,
unz_file_info pfile_info,
char *  szFileName,
uLong  fileNameBufferSize,
void *  extraField,
uLong  extraFieldBufferSize,
char *  szComment,
uLong  commentBufferSize 
)

+ Here is the call graph for this function:

int ZEXPORT unzOpenCurrentFile ( unzFile  file)
int ZEXPORT unzOpenCurrentFilePassword ( unzFile  file,
const char *  password 
)
int ZEXPORT unzOpenCurrentFile2 ( unzFile  file,
int *  method,
int *  level,
int  raw 
)
int ZEXPORT unzOpenCurrentFile3 ( unzFile  file,
int *  method,
int *  level,
int  raw,
const char *  password 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT unzCloseCurrentFile ( unzFile  file)

+ Here is the caller graph for this function:

int ZEXPORT unzReadCurrentFile ( unzFile  file,
voidp  buf,
unsigned  len 
)

+ Here is the caller graph for this function:

z_off_t ZEXPORT unztell ( unzFile  file)
int ZEXPORT unzeof ( unzFile  file)
int ZEXPORT unzGetLocalExtrafield ( unzFile  file,
voidp  buf,
unsigned  len 
)
uLong ZEXPORT unzGetOffset ( unzFile  file)
int ZEXPORT unzSetOffset ( unzFile  file,
uLong  pos 
)
int gf_unzip_probe ( const char *  zipfilename)