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

@@ -40,7 +40,7 @@ handle_addtagid(Client &client, Request args, Response &r)
const char *const value = args[2];
client.partition.playlist.AddSongIdTag(song_id, tag_type, value);
client.GetPlaylist().AddSongIdTag(song_id, tag_type, value);
return CommandResult::OK;
}
@@ -60,6 +60,6 @@ handle_cleartagid(Client &client, Request args, Response &r)
}
}
client.partition.playlist.ClearSongIdTag(song_id, tag_type);
client.GetPlaylist().ClearSongIdTag(song_id, tag_type);
return CommandResult::OK;
}