xspf_c.cpp File Reference

Simple libxspf C bindings. More...

#include <xspf/XspfIndentFormatter.h>
#include <xspf/XspfProps.h>
#include <xspf/XspfReader.h>
#include <xspf/XspfReaderCallback.h>
#include <xspf/XspfTrack.h>
#include <xspf/XspfWriter.h>
#include <cstring>
#include "xspf_c.h"

Include dependency graph for xspf_c.cpp:

Go to the source code of this file.

Classes

class  XspfCReaderCallback
 Xspf list reading callback, which stores data in a specific C-style Xspf list. More...

Functions

static void xspf_mvalue_free (struct xspf_mvalue *mv)
 Deallocate all objects in a xspf_mvalue linked list.
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.cpp.


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