From 609263594c2e1aae7565f3d00cd509688e4566bd Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sun, 19 Aug 2007 18:52:06 +0000 Subject: Add some comments git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6764 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/playlist.c b/src/playlist.c index 537779a7c..aafb730fa 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1587,6 +1587,11 @@ void findSongsInPlaylist(int fd, int numItems, LocateTagItem * items) } } +/** + * Playlist Queue Functions + */ + +/* Clear the queue */ void clearPlaylistQueue(void) { freeList(playlistQueue); @@ -1594,6 +1599,7 @@ void clearPlaylistQueue(void) incrPlaylistQueueVersion(); } +/* Add a song to playlist queue by playlist id */ int addToPlaylistQueueById(int fd, int song, int toPosition) { int pos, *data; @@ -1628,6 +1634,7 @@ int addToPlaylistQueueById(int fd, int song, int toPosition) return 0; } +/* delete a song from the playlist queue based on position */ int deleteFromPlaylistQueue(int fd, int song) { if (song < 0 || song >= playlistQueue->numberOfNodes) { @@ -1655,6 +1662,7 @@ int deleteFromPlaylistQueueInternal(int song) return 0; } +/* list the playlist queue comment */ int playlistQueueInfo(int fd) { ListNode *cur = playlistQueue->firstNode; -- cgit v1.2.3