libmpd
11.8.17
|
Modules | |
Command Queue | |
Playlist Search | |
Playlist Queue | |
Functions | |
long long | mpd_playlist_get_playlist_id (MpdObj *mi) |
long long | mpd_playlist_get_old_playlist_id (MpdObj *mi) |
mpd_Song * | mpd_playlist_get_song (MpdObj *mi, int songid) |
mpd_Song * | mpd_playlist_get_song_from_pos (MpdObj *mi, int songpos) |
MpdData * | mpd_playlist_get_song_from_pos_range (MpdObj *mi, int start, int stop) |
mpd_Song * | mpd_playlist_get_current_song (MpdObj *mi) |
int | mpd_playlist_clear (MpdObj *mi) |
int | mpd_playlist_shuffle (MpdObj *mi) |
int | mpd_playlist_move_pos (MpdObj *mi, int old_pos, int new_pos) |
int | mpd_playlist_move_id (MpdObj *mi, int old_id, int new_id) |
MpdData * | mpd_playlist_get_changes (MpdObj *mi, int old_playlist_id) |
MpdData * | mpd_playlist_get_changes_posid (MpdObj *mi, int old_playlist_id) |
int | mpd_playlist_get_playlist_length (MpdObj *mi) |
int | mpd_playlist_add (MpdObj *mi, const char *path) |
int | mpd_playlist_delete_id (MpdObj *mi, int songid) |
int | mpd_playlist_delete_pos (MpdObj *mi, int songpos) |
int | mpd_playlist_add_get_id (MpdObj *mi, const char *path) |
int mpd_playlist_add | ( | MpdObj * | mi, |
const char * | path | ||
) |
mi | a MpdObj |
path | the path of the song to be added. |
Adds a song to the playlist, use mpd_playlist_queue_add to add multiple songs.
int mpd_playlist_add_get_id | ( | MpdObj * | mi, |
const char * | path | ||
) |
mi | a MpdObj |
path | a path to a song |
Add a single path and return the id Only use this to add a single song, if you need to add multiple songs, use the mpd_playlist_queue_add for improved performance
int mpd_playlist_clear | ( | MpdObj * | mi | ) |
int mpd_playlist_delete_id | ( | MpdObj * | mi, |
int | songid | ||
) |
int mpd_playlist_delete_pos | ( | MpdObj * | mi, |
int | songpos | ||
) |
mi | a MpdObj |
old_playlist_id | The id of the old playlist you want to get the changes with. |
Gets a list of songs that changed between the current and the old playlist
mi | a MpdObj |
returns the mpd_Song for the currently playing song
long long mpd_playlist_get_old_playlist_id | ( | MpdObj * | mi | ) |
long long mpd_playlist_get_playlist_id | ( | MpdObj * | mi | ) |
mpd_playlist_get_playlist_id
mi | a MpdObj |
Returns the id of the current playlist
int mpd_playlist_get_playlist_length | ( | MpdObj * | mi | ) |
mi | a MpdObj |
mi | a MpdObj |
songid | a SongId |
returns the mpd_Song for playlist entry with songid.
mi | a MpdObj |
songpos | a Songpos |
returns the mpd_Song for playlist entry with songpos.
mi | a MpdObj |
start | a Songpos |
stop | a Songpos |
returns the MpdData list with song from the playlist from pos start until stop. so start = 0, stop = 5 will return song 0,1,2,3,4,5.
int mpd_playlist_move_id | ( | MpdObj * | mi, |
int | old_id, | ||
int | new_id | ||
) |
int mpd_playlist_move_pos | ( | MpdObj * | mi, |
int | old_pos, | ||
int | new_pos | ||
) |