diff options
author | Max Kellermann <max@duempel.org> | 2015-08-11 22:11:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-11 22:43:10 +0200 |
commit | 0f92d021a1dc2992352b635846428229d2c9ffbb (patch) | |
tree | 428bb5673728c67cf1fd29672609c9e367ad9da0 /src/command/OutputCommands.cxx | |
parent | cbdc3194cc20aa5abcce8b53c44d46a96002ad3a (diff) | |
download | mpd-0f92d021a1dc2992352b635846428229d2c9ffbb.tar.gz mpd-0f92d021a1dc2992352b635846428229d2c9ffbb.tar.xz mpd-0f92d021a1dc2992352b635846428229d2c9ffbb.zip |
command/Request: new struct wrapping ConstBuffer<const char *>
Diffstat (limited to '')
-rw-r--r-- | src/command/OutputCommands.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/command/OutputCommands.cxx b/src/command/OutputCommands.cxx index 23eb7be5e..b562dc406 100644 --- a/src/command/OutputCommands.cxx +++ b/src/command/OutputCommands.cxx @@ -19,6 +19,7 @@ #include "config.h" #include "OutputCommands.hxx" +#include "Request.hxx" #include "output/OutputPrint.hxx" #include "output/OutputCommand.hxx" #include "protocol/Result.hxx" @@ -28,7 +29,7 @@ #include "util/ConstBuffer.hxx" CommandResult -handle_enableoutput(Client &client, ConstBuffer<const char *> args) +handle_enableoutput(Client &client, Request args) { assert(args.size == 1); @@ -46,7 +47,7 @@ handle_enableoutput(Client &client, ConstBuffer<const char *> args) } CommandResult -handle_disableoutput(Client &client, ConstBuffer<const char *> args) +handle_disableoutput(Client &client, Request args) { assert(args.size == 1); @@ -64,7 +65,7 @@ handle_disableoutput(Client &client, ConstBuffer<const char *> args) } CommandResult -handle_toggleoutput(Client &client, ConstBuffer<const char *> args) +handle_toggleoutput(Client &client, Request args) { assert(args.size == 1); @@ -82,7 +83,7 @@ handle_toggleoutput(Client &client, ConstBuffer<const char *> args) } CommandResult -handle_devices(Client &client, gcc_unused ConstBuffer<const char *> args) +handle_devices(Client &client, gcc_unused Request args) { assert(args.IsEmpty()); |