diff options
author | Max Kellermann <max@duempel.org> | 2009-09-30 23:13:13 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-09-30 23:13:13 +0200 |
commit | 31cabc751d2dc6721706d878a0694afc83ef6a0c (patch) | |
tree | 68a4f6b3d36d1ee3530d8ee9983f10f862ce624e /src/playlist.h | |
parent | 0478a8e2880a26f9993c5adeb10f29acc11deb72 (diff) | |
download | mpd-31cabc751d2dc6721706d878a0694afc83ef6a0c.tar.gz mpd-31cabc751d2dc6721706d878a0694afc83ef6a0c.tar.xz mpd-31cabc751d2dc6721706d878a0694afc83ef6a0c.zip |
command: range support for "delete"
Diffstat (limited to 'src/playlist.h')
-rw-r--r-- | src/playlist.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h index 4126c67c3..311163e8b 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -141,6 +141,15 @@ playlist_append_song(struct playlist *playlist, enum playlist_result playlist_delete(struct playlist *playlist, unsigned song); +/** + * Deletes a range of songs from the playlist. + * + * @param start the position of the first song to delete + * @param end the position after the last song to delete + */ +enum playlist_result +playlist_delete_range(struct playlist *playlist, unsigned start, unsigned end); + enum playlist_result playlist_delete_id(struct playlist *playlist, unsigned song); |