zipaccess.c File Reference

Include dependency graph for zipaccess.c:


Data Structures

struct  access_sys_t
 ************************************************************************** This is our own access_sys_t for zip files More...

Functions

static int AccessControl (access_t *p_access, int i_query, va_list args)
 **************************************************************************
static ssize_t AccessRead (access_t *p_access, uint8_t *p_buffer, size_t sz)
 **************************************************************************
static int AccessSeek (access_t *p_access, uint64_t seek_len)
 **************************************************************************
static int OpenFileInZip (access_t *p_access, uint64_t i_pos)
 **************************************************************************
static char * unescapeXml (const char *psz_text)
 **************************************************************************
int AccessOpen (vlc_object_t *p_this)
 **************************************************************************
void AccessClose (vlc_object_t *p_this)
 **************************************************************************
static void *ZCALLBACK ZipIO_Open (void *opaque, const char *file, int mode)
 **************************************************************************
static uLong ZCALLBACK ZipIO_Read (void *opaque, void *stream, void *buf, uLong size)
 **************************************************************************
static uLong ZCALLBACK ZipIO_Write (void *opaque, void *stream, const void *buf, uLong size)
 **************************************************************************
static long ZCALLBACK ZipIO_Tell (void *opaque, void *stream)
 **************************************************************************
static long ZCALLBACK ZipIO_Seek (void *opaque, void *stream, uLong offset, int origin)
 **************************************************************************
static int ZCALLBACK ZipIO_Close (void *opaque, void *stream)
 **************************************************************************
static int ZCALLBACK ZipIO_Error (void *opaque, void *stream)
 **************************************************************************

Function Documentation

void AccessClose ( vlc_object_t p_this  ) 

**************************************************************************

Close access: free structures

References CommonClose(), access_sys_t::fileFunctions, access_sys_t::p_control, access_t::p_sys, p_sys, access_sys_t::psz_fileInzip, and access_sys_t::zipFile.

Referenced by AccessOpen().

static int AccessControl ( access_t p_access,
int  i_query,
va_list  args 
) [static]

int AccessOpen ( vlc_object_t p_this  ) 

static ssize_t AccessRead ( access_t p_access,
uint8_t *  p_buffer,
size_t  sz 
) [static]

**************************************************************************

Read access Reads current opened file in zip. This does not open the file in zip. Return -1 if no data yet, 0 if no more data, else real data read

References access_t::i_pos, access_t::info, msg_Err, access_t::p_sys, p_sys, VLC_EGENERIC, and access_sys_t::zipFile.

static int AccessSeek ( access_t p_access,
uint64_t  seek_len 
) [static]

**************************************************************************

Seek inside zip file

References access_t::i_pos, access_t::info, msg_Err, msg_Warn, OpenFileInZip(), access_t::p_sys, p_sys, VLC_EGENERIC, VLC_SUCCESS, ZIP_BUFFER_LEN, and access_sys_t::zipFile.

Referenced by AccessOpen(), and OpenFileInZip().

static int OpenFileInZip ( access_t p_access,
uint64_t  i_pos 
) [static]

**************************************************************************

Open file in zip

References AccessSeek(), access_t::i_pos, access_t::info, msg_Err, access_t::p_sys, p_sys, access_sys_t::psz_fileInzip, VLC_EGENERIC, VLC_SUCCESS, and access_sys_t::zipFile.

Referenced by AccessOpen(), and AccessSeek().

static char * unescapeXml ( const char *  psz_text  )  [static]

**************************************************************************

Unescape valid XML string The exact reverse of escapeToXml (zipstream.c)

References i_value, and isAllowedChar().

Referenced by AccessOpen().

static int ZCALLBACK ZipIO_Close ( void *  opaque,
void *  stream 
) [static]

**************************************************************************

I/O functions for the ioapi: close

References stream_Delete().

static int ZCALLBACK ZipIO_Error ( void *  opaque,
void *  stream 
) [static]

**************************************************************************

I/O functions for the ioapi: test error (man 3 ferror)

static void* ZCALLBACK ZipIO_Open ( void *  opaque,
const char *  file,
int  mode 
) [static]

**************************************************************************

I/O functions for the ioapi: open (read only)

References stream_UrlNew.

static uLong ZCALLBACK ZipIO_Read ( void *  opaque,
void *  stream,
void *  buf,
uLong  size 
) [static]

**************************************************************************

I/O functions for the ioapi: read

References stream_Read().

static long ZCALLBACK ZipIO_Seek ( void *  opaque,
void *  stream,
uLong  offset,
int  origin 
) [static]

**************************************************************************

I/O functions for the ioapi: seek

References stream_Seek(), stream_Size(), and stream_Tell().

static long ZCALLBACK ZipIO_Tell ( void *  opaque,
void *  stream 
) [static]

**************************************************************************

I/O functions for the ioapi: tell

References stream_Tell().

static uLong ZCALLBACK ZipIO_Write ( void *  opaque,
void *  stream,
const void *  buf,
uLong  size 
) [static]

**************************************************************************

I/O functions for the ioapi: write (assert insteadof segfault)


Generated on Tue May 25 08:05:09 2010 for VLC by  doxygen 1.5.6