aboutsummaryrefslogtreecommitdiffstats
path: root/src/OtherCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 19:39:40 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 19:39:40 +0200
commitc2d5ce0ca213e2d25df17e080b07a3d91d330972 (patch)
tree4d7088e9e2a91408a0d5f16b247016fc125cdecc /src/OtherCommands.cxx
parent32645b80c4c6792140e312b5b9fe9f96b48c6ec7 (diff)
downloadmpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.tar.gz
mpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.tar.xz
mpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.zip
Client: move trivial functions into the Client class
Diffstat (limited to 'src/OtherCommands.cxx')
-rw-r--r--src/OtherCommands.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx
index 038a6448b..3e1e6fdd4 100644
--- a/src/OtherCommands.cxx
+++ b/src/OtherCommands.cxx
@@ -67,7 +67,7 @@ enum command_return
handle_urlhandlers(Client &client,
gcc_unused int argc, gcc_unused char *argv[])
{
- if (client_is_local(client))
+ if (client.IsLocal())
client_puts(client, "handler: file://\n");
print_supported_uri_schemes(client);
return COMMAND_RETURN_OK;
@@ -262,7 +262,7 @@ handle_password(Client &client, gcc_unused int argc, char *argv[])
return COMMAND_RETURN_ERROR;
}
- client_set_permission(client, permission);
+ client.SetPermission(permission);
return COMMAND_RETURN_OK;
}
@@ -271,7 +271,7 @@ enum command_return
handle_config(Client &client,
gcc_unused int argc, gcc_unused char *argv[])
{
- if (!client_is_local(client)) {
+ if (!client.IsLocal()) {
command_error(client, ACK_ERROR_PERMISSION,
"Command only permitted to local clients");
return COMMAND_RETURN_ERROR;