aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 14:52:04 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 14:52:04 +0100
commit627d590ce524faf7ec197c54e65076107af27fe9 (patch)
treee3b594abc6c2c12c6ea054a77aabc09bc5ffd59b /src/playlist.c
parentd449d6abab3c263ae6bcfe2ae5e4465d7a1d149f (diff)
downloadmpd-627d590ce524faf7ec197c54e65076107af27fe9.tar.gz
mpd-627d590ce524faf7ec197c54e65076107af27fe9.tar.xz
mpd-627d590ce524faf7ec197c54e65076107af27fe9.zip
command: use queue_print_*()
Replaced several wrapper functions from playlist.c, and make command.c use the queue print functions directly.
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 9d1f4f5b4..32e5bba78 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -157,12 +157,6 @@ void clearPlaylist(void)
incrPlaylistVersion();
}
-void showPlaylist(struct client *client)
-{
- queue_print_uris(client, &playlist.queue,
- 0, queue_length(&playlist.queue));
-}
-
void savePlaylistState(FILE *fp)
{
fprintf(fp, "%s", PLAYLIST_STATE_FILE_STATE);
@@ -288,48 +282,6 @@ void readPlaylistState(FILE *fp)
setPlaylistRandomStatus(random_mode);
}
-int playlistChanges(struct client *client, uint32_t version)
-{
- queue_print_changes_info(client, &playlist.queue, version);
- return 0;
-}
-
-int playlistChangesPosId(struct client *client, uint32_t version)
-{
- queue_print_changes_position(client, &playlist.queue, version);
- return 0;
-}
-
-enum playlist_result
-playlistInfo(struct client *client, unsigned start, unsigned end)
-{
- if (end > queue_length(&playlist.queue))
- end = queue_length(&playlist.queue);
-
- if (start > end)
- return PLAYLIST_RESULT_BAD_RANGE;
-
- queue_print_info(client, &playlist.queue, start, end);
- return PLAYLIST_RESULT_SUCCESS;
-}
-
-enum playlist_result playlistId(struct client *client, int id)
-{
- int begin = 0;
- unsigned end = queue_length(&playlist.queue);
-
- if (id >= 0) {
- begin = queue_id_to_position(&playlist.queue, id);
- if (begin < 0)
- return PLAYLIST_RESULT_NO_SUCH_SONG;
-
- end = begin + 1;
- }
-
- queue_print_info(client, &playlist.queue, begin, end);
- return PLAYLIST_RESULT_SUCCESS;
-}
-
/**
* Queue a song, addressed by its order number.
*/