
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_list * | xspf_parse (char const *filename, char const *baseuri) |
| Parse an XSPF file by filename. | |
| struct xspf_list * | xspf_parse_memory (char const *memory, int len_bytes, char const *baseuri) |
| Parse an XSPF file from memory. | |
| struct xspf_list * | xspf_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_mvalue * | xspf_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_track * | xspf_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. | |
Definition in file xspf_c.h.
| struct xspf_list* xspf_parse_memory | ( | char const * | memory, | |
| int | len_bytes, | |||
| char const * | baseuri | |||
| ) | [read] |
1.5.8