aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-10 17:39:49 +0100
committerMax Kellermann <max@duempel.org>2009-01-10 17:39:49 +0100
commit8ebe7bfb250f2b1048d6e7f6c2477717daaad8e9 (patch)
tree51dfa41888a76bdd992eb729df7740adb84f42fb /src/playlist.h
parentb7c4b78846cf2eba35517a1a0c435a3a056636f5 (diff)
downloadmpd-8ebe7bfb250f2b1048d6e7f6c2477717daaad8e9.tar.gz
mpd-8ebe7bfb250f2b1048d6e7f6c2477717daaad8e9.tar.xz
mpd-8ebe7bfb250f2b1048d6e7f6c2477717daaad8e9.zip
playlist: pass unsigned integers to playlistInfo()
A song index cannot be negative. Also require the second parameter to be valid.
Diffstat (limited to 'src/playlist.h')
-rw-r--r--src/playlist.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/playlist.h b/src/playlist.h
index 87364cb4c..4af4aa82c 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -95,7 +95,16 @@ enum playlist_result deleteFromPlaylist(unsigned song);
enum playlist_result deleteFromPlaylistById(unsigned song);
-enum playlist_result playlistInfo(struct client *client, int song, int max);
+/**
+ * Send detailed information about a range of songs in the playlist to
+ * a client.
+ *
+ * @param client the client which has requested information
+ * @param start the index of the first song (including)
+ * @param end the index of the last song (excluding)
+ */
+enum playlist_result
+playlistInfo(struct client *client, unsigned start, unsigned end);
enum playlist_result playlistId(struct client *client, int song);