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.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <utime.h>
#include <sys/stat.h>
#include "unzip.h"
#include <gpac/tools.h>
+ Include dependency graph for unzip.c:

Macros

#define MOZZCONF_H
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define SEEK_SET   0
 

Functions

voidpf fopen_file_func (voidpf opaque, const char *filename, int mode)
 
uLong fread_file_func (voidpf opaque, voidpf stream, void *buf, uLong size)
 
uLong fwrite_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size)
 
long ftell_file_func (voidpf opaque, voidpf stream)
 
long fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
 
int fclose_file_func (voidpf opaque, voidpf stream)
 
int ferror_file_func (voidpf opaque, voidpf stream)
 
void fill_fopen_filefunc (zlib_filefunc_def *pzlib_filefunc_def)
 
static int unzlocal_getByte (zlib_filefunc_def *pzlib_filefunc_def, voidpf filestream, int *pi) const
 
static int unzlocal_getShort (zlib_filefunc_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) const
 
static int unzlocal_getLong (zlib_filefunc_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) const
 
static uLong unzlocal_SearchCentralDir (zlib_filefunc_def *pzlib_filefunc_def, voidpf filestream) const
 
void unzlocal_DosDateToTmuDate (uLong ulDosDate, tm_unz *ptm)
 
static int unzlocal_GetCurrentFileInfoInternal (unzFile file, unz_file_info *pfile_info, unz_file_info_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
 
int unzGetCurrentFileInfo (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
 
int unzGoToNextFile (unzFile file)
 
int unzGoToFirstFile (unzFile file)
 
int unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info)
 
int unzCloseCurrentFile (unzFile file)
 
unzFile ZEXPORT unzOpen2 (char *path, zlib_filefunc_def *pzlib_filefunc_def) const
 
int unzReadCurrentFile (unzFile file, voidp buf, unsigned len)
 
int unzlocal_CheckCurrentFileCoherencyHeader (unz_s *s, uInt *piSizeVar, uLong *poffset_local_extrafield, uInt *psize_local_extrafield)
 
int unzOpenCurrentFile3 (unzFile file, int *method, int *level, int raw, const char *password)
 
int ZEXPORT unzClose (unzFile file)
 
int mymkdir (char *dirname) const
 
int makedir (char *newdir) const
 
int do_extract_currentfile (unzFile uf)
 
int gf_unzip_archive (const char *zipfilename, const char *dirname)
 
int gf_unzip_probe (const char *zipfilename)
 

Macro Definition Documentation

#define MOZZCONF_H
#define SEEK_CUR   1
#define SEEK_END   2
#define SEEK_SET   0

Function Documentation

voidpf fopen_file_func ( voidpf  opaque,
const char *  filename,
int  mode 
)

+ Here is the caller graph for this function:

uLong fread_file_func ( voidpf  opaque,
voidpf  stream,
void *  buf,
uLong  size 
)

+ Here is the caller graph for this function:

uLong fwrite_file_func ( voidpf  opaque,
voidpf  stream,
const void *  buf,
uLong  size 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

long ftell_file_func ( voidpf  opaque,
voidpf  stream 
)

+ Here is the caller graph for this function:

long fseek_file_func ( voidpf  opaque,
voidpf  stream,
uLong  offset,
int  origin 
)

+ Here is the caller graph for this function:

int fclose_file_func ( voidpf  opaque,
voidpf  stream 
)

+ Here is the caller graph for this function:

int ferror_file_func ( voidpf  opaque,
voidpf  stream 
)

+ Here is the caller graph for this function:

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:

static int unzlocal_getByte ( zlib_filefunc_def pzlib_filefunc_def,
voidpf  filestream,
int *  pi 
) const
static

+ Here is the caller graph for this function:

static int unzlocal_getShort ( zlib_filefunc_def pzlib_filefunc_def,
voidpf  filestream,
uLong *  pX 
) const
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int unzlocal_getLong ( zlib_filefunc_def pzlib_filefunc_def,
voidpf  filestream,
uLong *  pX 
) const
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uLong unzlocal_SearchCentralDir ( zlib_filefunc_def pzlib_filefunc_def,
voidpf  filestream 
) const
static

+ Here is the caller graph for this function:

void unzlocal_DosDateToTmuDate ( uLong  ulDosDate,
tm_unz ptm 
)

+ Here is the caller graph for this function:

static int unzlocal_GetCurrentFileInfoInternal ( unzFile  file,
unz_file_info pfile_info,
unz_file_info_internal pfile_info_internal,
char *  szFileName,
uLong  fileNameBufferSize,
void *  extraField,
uLong  extraFieldBufferSize,
char *  szComment,
uLong  commentBufferSize 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int 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 unzGoToNextFile ( unzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int unzGoToFirstFile ( unzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int unzGetGlobalInfo ( unzFile  file,
unz_global_info pglobal_info 
)

+ Here is the caller graph for this function:

int unzCloseCurrentFile ( unzFile  file)

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

int unzlocal_CheckCurrentFileCoherencyHeader ( unz_s s,
uInt*  piSizeVar,
uLong *  poffset_local_extrafield,
uInt *  psize_local_extrafield 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int 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 unzClose ( unzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mymkdir ( char*  dirname) const

+ Here is the caller graph for this function:

int makedir ( char *  newdir) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int do_extract_currentfile ( unzFile  uf)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gf_unzip_archive ( const char *  zipfilename,
const char *  dirname 
)

+ Here is the call graph for this function:

int gf_unzip_probe ( const char *  zipfilename)