|
libmpd 11.8.17
|
Go to the source code of this file.
| 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.
References mpd_playlist_add().
Referenced by mpd_playlist_add().
| 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
References mpd_playlist_add_get_id().
Referenced by mpd_playlist_add_get_id().
| int mpd_playlist_clear | ( | MpdObj * | mi | ) |
mpd_playlist_clear
| mi | a MpdObj |
Clears the playlist
References mpd_playlist_clear().
Referenced by mpd_playlist_clear().
| int mpd_playlist_delete_id | ( | MpdObj * | mi, |
| int | songid ) |
| mi | a MpdObj |
| songid | a song id. |
Deletes a single song by it's id.
References mpd_playlist_delete_id().
Referenced by mpd_playlist_delete_id().
| int mpd_playlist_delete_pos | ( | MpdObj * | mi, |
| int | songpos ) |
| mi | a MpdObj |
| songpos | a song pos. |
Deletes a single song by it's position.
References mpd_playlist_delete_pos().
Referenced by mpd_playlist_delete_pos().
| 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
References mpd_playlist_get_changes().
Referenced by mpd_playlist_get_changes().
| mi | a MpdObj |
| old_playlist_id | The id of the old playlist you want to get the changes with. |
Gets a list of the song id/pos that changed between the current and the old playlist Check if this command is available.
References mpd_playlist_get_changes_posid().
Referenced by mpd_playlist_get_changes_posid().
| mi | a MpdObj |
returns the mpd_Song for the currently playing song
References mpd_playlist_get_current_song().
Referenced by mpd_playlist_get_current_song().
| long long mpd_playlist_get_old_playlist_id | ( | MpdObj * | mi | ) |
| mi | a MpdObj |
Returns the id of the previous playlist
References mpd_playlist_get_old_playlist_id().
Referenced by mpd_playlist_get_old_playlist_id().
| long long mpd_playlist_get_playlist_id | ( | MpdObj * | mi | ) |
mpd_playlist_get_playlist_id
| mi | a MpdObj |
Returns the id of the current playlist
References mpd_playlist_get_playlist_id().
Referenced by mpd_playlist_get_playlist_id().
| int mpd_playlist_get_playlist_length | ( | MpdObj * | mi | ) |
| mi | a MpdObj |
References mpd_playlist_get_playlist_length().
Referenced by mpd_playlist_get_playlist_length().
| mi | a MpdObj |
| songid | a SongId |
returns the mpd_Song for playlist entry with songid.
References mpd_playlist_get_song().
Referenced by mpd_playlist_get_song().
| mi | a MpdObj |
| songpos | a Songpos |
returns the mpd_Song for playlist entry with songpos.
References mpd_playlist_get_song_from_pos().
Referenced by mpd_playlist_get_song_from_pos().
| 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.
References mpd_playlist_get_song_from_pos_range().
Referenced by mpd_playlist_get_song_from_pos_range().
| int mpd_playlist_load | ( | MpdObj * | mi, |
| const char * | path ) |
| 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
References mpd_playlist_load().
Referenced by mpd_playlist_load().
| int mpd_playlist_move_id | ( | MpdObj * | mi, |
| int | old_id, | ||
| int | new_id ) |
| mi | a MpdObj |
| old_id | The id of the song to move |
| new_id | The id of the song to move too. |
Moves a song in the playlist. This uses the id of the song, not the position
References mpd_playlist_move_id().
Referenced by mpd_playlist_move_id().
| int mpd_playlist_move_pos | ( | MpdObj * | mi, |
| int | old_pos, | ||
| int | new_pos ) |
| mi | a MpdObj |
| old_pos | The current position in the playlist |
| new_pos | The new position in the playlist. |
Moves a song in the playlist. This uses the position of the song, not the id
References mpd_playlist_move_pos().
Referenced by mpd_playlist_move_pos().
| int mpd_playlist_mpd_queue_add | ( | MpdObj * | mi, |
| int | songid ) |
| mi | a MpdObj |
| songid | the id of the song to add |
Add the song from the playlist with id songid.
References mpd_playlist_mpd_queue_add().
Referenced by mpd_playlist_mpd_queue_add().
| int mpd_playlist_mpd_queue_remove | ( | MpdObj * | mi, |
| int | songpos ) |
| mi | a MpdObj |
| songpos | the pos of the song to remove |
Removes the song from the queue at position songpos
References mpd_playlist_mpd_queue_remove().
Referenced by mpd_playlist_mpd_queue_remove().
| int mpd_playlist_queue_add | ( | MpdObj * | mi, |
| const char * | path ) |
| mi | a MpdObj |
| path | The path to a song to add |
This queues an add command. The actual add isn't done until mpd_playlist_queue_commit is called
References mpd_playlist_queue_add().
Referenced by mpd_playlist_queue_add().
| int mpd_playlist_queue_commit | ( | MpdObj * | mi | ) |
| mi | a MpdObj |
Commits the queue'd commands in a command list. This is an efficient way of doing a lot of adds/removes.
References mpd_playlist_queue_commit().
Referenced by mpd_playlist_queue_commit().
| int mpd_playlist_queue_delete_id | ( | MpdObj * | mi, |
| int | id ) |
| mi | a MpdObj |
| id | The songid of the song you want to delete |
This queues a delete song from playlist command. The actually delete isn't done until mpd_playlist_queue_commit is called
References mpd_playlist_queue_delete_id().
Referenced by mpd_playlist_queue_delete_id().
| int mpd_playlist_queue_delete_pos | ( | MpdObj * | mi, |
| int | songpos ) |
| mi | a MpdObj |
| songpos | a song pos. |
Queues the deletion of a single song by it's position.
References mpd_playlist_queue_delete_pos().
Referenced by mpd_playlist_queue_delete_pos().
| int mpd_playlist_queue_load | ( | MpdObj * | mi, |
| const char * | path ) |
| 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
References mpd_playlist_queue_load().
Referenced by mpd_playlist_queue_load().
| void mpd_playlist_search_add_constraint | ( | MpdObj * | mi, |
| mpd_TagItems | field, | ||
| const char * | value ) |
| mi | A MpdObj |
| field | A mpd_TagItems |
| value | a string to match the field against |
Adds a constraint to the playlist search.
References mpd_playlist_search_add_constraint().
Referenced by mpd_playlist_search_add_constraint().
| mi | a MpdObj |
Executes the playlist search. This needs to be started with mpd_playlist_search_start
References mpd_playlist_search_commit().
Referenced by mpd_playlist_search_commit().
| void mpd_playlist_search_start | ( | MpdObj * | mi, |
| int | exact ) |
Starts a playlist search. Add constraints using mpd_playlist_search_add_constraint And execute the search with mpd_playlist_search_commit
References mpd_playlist_search_start().
Referenced by mpd_playlist_search_start().
| int mpd_playlist_shuffle | ( | MpdObj * | mi | ) |
| mi | a MpdObj |
Shuffles the order of the playlist, this is different than playing random
References mpd_playlist_shuffle().
Referenced by mpd_playlist_shuffle().