xspf.c File Reference

XSPF playlist export functions. More...

Include dependency graph for xspf.c:


Functions

int xspf_export_playlist (vlc_object_t *p_this)
 Prints the XSPF header to file, writes each item by xspf_export_item() and closes the open xml elements.
static void xspf_export_item (playlist_item_t *p_item, FILE *p_file, int *p_i_count)
 exports one item to file or traverse if item is a node
static void xspf_extension_item (playlist_item_t *p_item, FILE *p_file, int *p_i_count)
 exports one item in extension to file and traverse if item is a node
static char * assertUTF8URI (char *psz_name)
 
Parameters:
psz_name the location of the media ressource (e.g.


Detailed Description

XSPF playlist export functions.


Function Documentation

static char* assertUTF8URI ( char *  psz_name  )  [static]

Parameters:
psz_name the location of the media ressource (e.g.

local file, device, network stream, etc.)

Returns:
a new char buffer which asserts that the location is valid UTF-8 and a valid URI
Note:
the returned buffer must be freed, when it isn't used anymore

< the new result buffer to return

< src & dest pointers for URI conversion

< we do additional -encoding if the URI is a file:// one

Todo:
check for a valid scheme part preceding the colon

static void xspf_export_item ( playlist_item_t p_item,
FILE *  p_file,
int *  p_i_count 
) [static]

exports one item to file or traverse if item is a node

Parameters:
p_item playlist item to export
p_file file to write xml-converted item to
p_i_count counter for track identifiers

int xspf_export_playlist ( vlc_object_t p_this  ) 

Prints the XSPF header to file, writes each item by xspf_export_item() and closes the open xml elements.

Parameters:
p_this the VLC playlist object
Returns:
VLC_SUCCESS if some memory is available, otherwise VLC_ENONMEM

static void xspf_extension_item ( playlist_item_t p_item,
FILE *  p_file,
int *  p_i_count 
) [static]

exports one item in extension to file and traverse if item is a node

Parameters:
p_item playlist item to export
p_file file to write xml-converted item to
p_i_count counter for track identifiers


Generated on Wed Aug 13 08:03:29 2008 for VLC by  doxygen 1.5.1