Playlist Queue
[Playlist]


Functions

int mpd_playlist_mpd_queue_add (MpdObj *mi, int songid)
int mpd_playlist_mpd_queue_remove (MpdObj *mi, int songpos)
int mpd_playlist_load (MpdObj *mi, const char *path)

Detailed Description

Allow control of MPD new queue system

Function Documentation

int mpd_playlist_load ( MpdObj mi,
const char *  path 
)

Parameters:
mi a MpdObj
path The path to a playlist to load
This queues a load command. The actual load isn't done until mpd_playlist_queue_commit is called

Returns:
a MpdError

int mpd_playlist_mpd_queue_add ( MpdObj mi,
int  songid 
)

Parameters:
mi a MpdObj
songid the id of the song to add
Add the song from the playlist with id songid.

Returns:
a MpdError

int mpd_playlist_mpd_queue_remove ( MpdObj mi,
int  songpos 
)

Parameters:
mi a MpdObj
songpos the pos of the song to remove
Removes the song from the queue at position songpos

Returns:
a MpdError


Copyright 2006 Qball Cow