xspf_c.h File Reference

Simple libxspf C bindings. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  xspf_mvalue
 Linked list for values inside tracks or lists with string values. More...
struct  xspf_track
 Single track in an XSPF list. More...
struct  xspf_list
 Parsed XSPF file. More...

Defines

#define XSPF_LIST_FOREACH_TRACK(l, t)   for ((t) = (l)->tracks; (t) != NULL; (t) = (t)->next)
 Easy interface for walking through tracks.
#define XSPF_TRACK_FOREACH_LOCATION(t, l)   for ((l) = (t)->locations; (l) != NULL; (l) = (l)->next)
 Easy interface for walking through locations.
#define XSPF_TRACK_FOREACH_IDENTIFIER(t, i)   for ((i) = (t)->identifiers; (i) != NULL; (i) = (i)->next)
 Easy interface for walking through identifiers.

Functions

struct xspf_listxspf_parse (char const *filename, char const *baseuri)
 Parse an XSPF file by filename.
struct xspf_listxspf_parse_memory (char const *memory, int len_bytes, char const *baseuri)
 Parse an XSPF file from memory.
struct xspf_listxspf_new (void)
 Create a new empty XSPF playlist.
void xspf_free (struct xspf_list *list)
 Free the parser results.
void xspf_setvalue (char **str, char const *nstr)
 Set or overwrite a value in the xspf_list, xspf_track or xspf_mvalue structures. Passing NULL will unset the string.
struct xspf_mvaluexspf_new_mvalue_before (struct xspf_mvalue **mvalue)
 Insert a new mvalue to the linked list before the specified one. This routine can also be used to insert a new mvalue to the end of the list (or an empty list) by passing the address of the mvalue list or the next field in the last object.
struct xspf_trackxspf_new_track_before (struct xspf_track **track)
 Insert a new track to the linked list before the specified one. This routine can also be used to insert a new track to the end of the list (or an empty list) by passing the address of the track list or the next field in the last object.
int xspf_write (struct xspf_list *list, char const *filename, char const *baseuri)
 Write the Xspf playlist to a file.


Detailed Description

Simple libxspf C bindings.

Definition in file xspf_c.h.


Function Documentation

struct xspf_list* xspf_parse_memory ( char const *  memory,
int  len_bytes,
char const *  baseuri 
) [read]

Parse an XSPF file from memory.

Since:
1.2.0

Definition at line 206 of file xspf_c.cpp.


Generated on Sat Mar 7 01:09:38 2009 for xspf_c by  doxygen 1.5.8