libmpd  11.8.17
Playlist Queue

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

◆ mpd_playlist_load()

int mpd_playlist_load ( MpdObj mi,
const char *  path 
)
Parameters
mia MpdObj
pathThe 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

◆ mpd_playlist_mpd_queue_add()

int mpd_playlist_mpd_queue_add ( MpdObj mi,
int  songid 
)
Parameters
mia MpdObj
songidthe id of the song to add

Add the song from the playlist with id songid.

Returns
a MpdError

◆ mpd_playlist_mpd_queue_remove()

int mpd_playlist_mpd_queue_remove ( MpdObj mi,
int  songpos 
)
Parameters
mia MpdObj
songposthe pos of the song to remove

Removes the song from the queue at position songpos

Returns
a MpdError

Copyright 2006 Qball Cow