From 6f0781f0396ab5e4bc8aece6986381dac8f03081 Mon Sep 17 00:00:00 2001 From: Thomas Jansen Date: Fri, 9 Jan 2009 17:06:44 +0100 Subject: command: playlistinfo now uses a range argument rather than just a song id Loosely based on a patch provided by lesion in bug #1766. The playlistinfo command can now retrieve ranges of the playlist. The new argument indicates which entry is the last one that will be displayed. The number of displayed entries may be smaller than expected if the end of the playlist is reached. Previous usage: playlistinfo [start] New usage: playlistinfo [start[:end]] --- src/playlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index 59c37a788..87364cb4c 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -95,7 +95,7 @@ enum playlist_result deleteFromPlaylist(unsigned song); enum playlist_result deleteFromPlaylistById(unsigned song); -enum playlist_result playlistInfo(struct client *client, int song); +enum playlist_result playlistInfo(struct client *client, int song, int max); enum playlist_result playlistId(struct client *client, int song); -- cgit v1.2.3