Client: replace playlist and player_control with getter methods
Prepare to convert "partition" to a mutable pointer.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user