SCTC
the soundcloud.com terminal client
Functions
jspf.h File Reference
#include "track.h"
Include dependency graph for jspf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool jspf_write (char *file, struct track_list *list)
 Write a whole tracklist to file. More...
 
struct track_listjspf_read (char *file)
 Read a JSPF playlist to a track_list. More...
 
char * jspf_error ()
 Return a descriptive message for the error occured in the last call to jspf_*. More...
 

Function Documentation

char* jspf_error ( )

Return a descriptive message for the error occured in the last call to jspf_*.

The memory returned is allocated statically, it must not be free'd. This function may only be used directly after an error occured(!), calling another jspf_* function after the failing call and jspf_error() is undefined behaviour.

Returns
Pointer the message

Here is the caller graph for this function:

struct track_list* jspf_read ( char *  file)

Read a JSPF playlist to a track_list.

Parameters
fileThe file to read from
Returns
The track_list containing data from file (or an empty list in case of error)

Here is the call graph for this function:

Here is the caller graph for this function:

bool jspf_write ( char *  file,
struct track_list list 
)

Write a whole tracklist to file.

Parameters
fileThe name of the file to write to
listThe tracklist to be written to file
Returns
true in case of success, false otherwise

Here is the call graph for this function:

Here is the caller graph for this function: