diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 19:39:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 19:39:40 +0200 |
commit | c2d5ce0ca213e2d25df17e080b07a3d91d330972 (patch) | |
tree | 4d7088e9e2a91408a0d5f16b247016fc125cdecc /src/AllCommands.cxx | |
parent | 32645b80c4c6792140e312b5b9fe9f96b48c6ec7 (diff) | |
download | mpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.tar.gz mpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.tar.xz mpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.zip |
Client: move trivial functions into the Client class
Diffstat (limited to 'src/AllCommands.cxx')
-rw-r--r-- | src/AllCommands.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AllCommands.cxx b/src/AllCommands.cxx index 73dd7d218..95edb0f19 100644 --- a/src/AllCommands.cxx +++ b/src/AllCommands.cxx @@ -182,7 +182,7 @@ static enum command_return handle_commands(Client &client, gcc_unused int argc, gcc_unused char *argv[]) { - const unsigned permission = client_get_permission(client); + const unsigned permission = client.GetPermission(); const struct command *cmd; for (unsigned i = 0; i < num_commands; ++i) { @@ -200,7 +200,7 @@ static enum command_return handle_not_commands(Client &client, gcc_unused int argc, gcc_unused char *argv[]) { - const unsigned permission = client_get_permission(client); + const unsigned permission = client.GetPermission(); const struct command *cmd; for (unsigned i = 0; i < num_commands; ++i) { @@ -364,7 +364,7 @@ command_process(Client &client, unsigned num, char *line) /* look up and invoke the command handler */ - cmd = command_checked_lookup(client, client_get_permission(client), + cmd = command_checked_lookup(client, client.GetPermission(), argc, argv); if (cmd) ret = cmd->handler(client, argc, argv); |