Client: add method GetPartition(), make partition private

This commit is contained in:
Max Kellermann
2017-02-25 09:58:58 +01:00
parent e3ee60e7af
commit c7396b0675
9 changed files with 72 additions and 58 deletions

View File

@@ -262,7 +262,7 @@ PrintUnavailableCommands(Response &r, unsigned permission)
static CommandResult
handle_commands(Client &client, gcc_unused Request request, Response &r)
{
return PrintAvailableCommands(r, client.partition,
return PrintAvailableCommands(r, client.GetPartition(),
client.GetPermission());
}