GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
|
#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>
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) |
#define MOZZCONF_H |
#define SEEK_CUR 1 |
#define SEEK_END 2 |
#define SEEK_SET 0 |
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 |
|
static |
|
static |
|
static |
void unzlocal_DosDateToTmuDate | ( | uLong | ulDosDate, |
tm_unz* | ptm | ||
) |
|
static |
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 | ) |