ram.c File Reference

Include dependency graph for ram.c:


Data Structures

struct  demux_sys_t

Functions

static int Demux (demux_t *p_demux)
 Main demux callback function.
static int Control (demux_t *p_demux, int i_query, va_list args)
static void ParseClipInfo (const char *psz_clipinfo, char **ppsz_artist, char **ppsz_title, char **ppsz_album, char **ppsz_genre, char **ppsz_year, char **ppsz_cdnum, char **ppsz_comments)
 Parses clipinfo parameter.
int Import_RAM (vlc_object_t *p_this)
 Import_RAM: main import function.
void Close_RAM (vlc_object_t *p_this)
 Frees up memory on module close.
static const char * SkipBlanks (const char *s, size_t i_strlen)
 Skips blanks in a given buffer.
static int ParseTime (const char *s, size_t i_strlen)
 Converts a time of format hour:minutes:sec.fraction to seconds.

Function Documentation

void Close_RAM ( vlc_object_t p_this  ) 

Frees up memory on module close.

Parameters:
p_this,: this demux object

References demux_t::p_sys, and demux_sys_t::psz_prefix.

static int Control ( demux_t p_demux,
int  i_query,
va_list  args 
) [static]

Parameters:
p_demux,: This object
i_query,: 
args,: List of arguments

References VLC_EGENERIC, and VLC_UNUSED.

static int Demux ( demux_t p_demux  )  [static]

int Import_RAM ( vlc_object_t p_this  ) 

Import_RAM: main import function.

Parameters:
p_this,: this demux object
Returns:
VLC_SUCCESS if everything is okay

References demux_IsPathExtension(), FindPrefix(), demux_t::p_sys, demux_sys_t::psz_prefix, STANDARD_DEMUX_INIT_MSG, VLC_EGENERIC, and VLC_SUCCESS.

static void ParseClipInfo ( const char *  psz_clipinfo,
char **  ppsz_artist,
char **  ppsz_title,
char **  ppsz_album,
char **  ppsz_genre,
char **  ppsz_year,
char **  ppsz_cdnum,
char **  ppsz_comments 
) [static]

Parses clipinfo parameter.

Parameters:
psz_clipinfo,: string containing the clipinfo parameter along with quotes
ppsz_artist,: Buffer to store artist name
ppsz_title,: Buffer to store title
ppsz_album,: Buffer to store album
ppsz_genre,: Buffer to store genre
ppsz_year,: Buffer to store year
ppsz_cdnum,: Buffer to store cdnum
ppsz_comments,: Buffer to store comments

References decode_URI_duplicate(), psz_value, and strdup().

Referenced by Demux().

static int ParseTime ( const char *  s,
size_t  i_strlen 
) [static]

Converts a time of format hour:minutes:sec.fraction to seconds.

Parameters:
s,: input string
i_strlen,: length of the buffer
Returns:
time in seconds

References SkipBlanks().

static const char* SkipBlanks ( const char *  s,
size_t  i_strlen 
) [static]

Skips blanks in a given buffer.

Parameters:
s,: input string
i_strlen,: length of the buffer


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