Client: replace playlist and player_control with getter methods

Prepare to convert "partition" to a mutable pointer.
This commit is contained in:
Max Kellermann
2017-02-20 12:44:09 +01:00
parent 71ce1a25dd
commit 668724de4e
7 changed files with 54 additions and 33 deletions

View File

@@ -58,7 +58,7 @@ print_spl_list(Response &r, const PlaylistVector &list)
CommandResult
handle_save(Client &client, Request args, gcc_unused Response &r)
{
spl_save_playlist(args.front(), client.playlist);
spl_save_playlist(args.front(), client.GetPlaylist());
return CommandResult::OK;
}
@@ -72,8 +72,8 @@ handle_load(Client &client, Request args, gcc_unused Response &r)
const SongLoader loader(client);
playlist_open_into_queue(args.front(),
range.start, range.end,
client.playlist,
client.player_control, loader);
client.GetPlaylist(),
client.GetPlayerControl(), loader);
return CommandResult::OK;
}