XMMS2
|
This is the playlist control. More...
Functions | |
void | xmms_playlist_update (xmms_playlist_t *playlist, const gchar *plname) |
Update playlist entries. More... | |
xmms_playlist_t * | xmms_playlist_init (xmms_medialib_t *medialib, xmms_coll_dag_t *colldag) |
Initializes a new xmms_playlist_t. More... | |
gboolean | xmms_playlist_advance (xmms_playlist_t *playlist) |
Go to next song in playlist according to current playlist mode. More... | |
xmms_medialib_entry_t | xmms_playlist_current_entry (xmms_playlist_t *playlist) |
Retrieve the currently active xmms_medialib_entry_t. More... | |
void | xmms_playlist_insert_entry (xmms_playlist_t *playlist, const gchar *plname, gint32 pos, xmms_medialib_entry_t file, xmms_error_t *err) |
Insert an entry at a given position in the playlist without validating it. More... | |
void | xmms_playlist_add_entry (xmms_playlist_t *playlist, const gchar *plname, xmms_medialib_entry_t file, xmms_error_t *err) |
Add an entry to the playlist without validating it. More... | |
void | xmms_playlist_add_entry_unlocked (xmms_playlist_t *playlist, const gchar *plname, xmmsv_t *plcoll, xmms_medialib_entry_t file, xmms_error_t *err) |
Add an entry to the playlist without locking the mutex. More... | |
This is the playlist control.
A playlist is a central thing in the XMMS server, it tells us what to do after we played the following entry
void xmms_playlist_add_entry | ( | xmms_playlist_t * | playlist, |
const gchar * | plname, | ||
xmms_medialib_entry_t | file, | ||
xmms_error_t * | err | ||
) |
Add an entry to the playlist without validating it.
void xmms_playlist_add_entry_unlocked | ( | xmms_playlist_t * | playlist, |
const gchar * | plname, | ||
xmmsv_t * | plcoll, | ||
xmms_medialib_entry_t | file, | ||
xmms_error_t * | err | ||
) |
Add an entry to the playlist without locking the mutex.
propagate the MID !
Referenced by xmms_playlist_add_entry().
gboolean xmms_playlist_advance | ( | xmms_playlist_t * | playlist | ) |
Go to next song in playlist according to current playlist mode.
xmms_playlist_current_entry is to be used to retrieve the entry.
xmms_medialib_entry_t xmms_playlist_current_entry | ( | xmms_playlist_t * | playlist | ) |
Retrieve the currently active xmms_medialib_entry_t.
xmms_playlist_t* xmms_playlist_init | ( | xmms_medialib_t * | medialib, |
xmms_coll_dag_t * | colldag | ||
) |
Initializes a new xmms_playlist_t.
Referenced by main().
void xmms_playlist_insert_entry | ( | xmms_playlist_t * | playlist, |
const gchar * | plname, | ||
gint32 | pos, | ||
xmms_medialib_entry_t | file, | ||
xmms_error_t * | err | ||
) |
Insert an entry at a given position in the playlist without validating it.
propagate the MID !
update position once client is familiar with the new item.
void xmms_playlist_update | ( | xmms_playlist_t * | playlist, |
const gchar * | plname | ||
) |
Update playlist entries.
Currently called by the playlist updater. An update can be partial. The function will emit at least one signal (playlist/collection/current_position changed) when something is updated. No more signal means everything is up to date.