aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/AllCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-25 00:11:10 +0200
committerMax Kellermann <max@duempel.org>2013-10-25 00:20:36 +0200
commit961c7d0f7853d28eddffd74d4a874c3e6a85ee9c (patch)
tree65f2705d3ff037107f05a35f61ea555b4d1f780b /src/command/AllCommands.cxx
parentc1ba47beee9c084e2a592e54dcda3f470e26ec47 (diff)
downloadmpd-961c7d0f7853d28eddffd74d4a874c3e6a85ee9c.tar.gz
mpd-961c7d0f7853d28eddffd74d4a874c3e6a85ee9c.tar.xz
mpd-961c7d0f7853d28eddffd74d4a874c3e6a85ee9c.zip
OtherCommands: re-add the "volume" command
This command was removed by commit 206392ad (MPD 0.16), even though it was been proven useful for some very simple clients. On request, I add it to the protocol again.
Diffstat (limited to 'src/command/AllCommands.cxx')
-rw-r--r--src/command/AllCommands.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx
index 2271aeff2..b83b42a29 100644
--- a/src/command/AllCommands.cxx
+++ b/src/command/AllCommands.cxx
@@ -161,6 +161,7 @@ static const struct command commands[] = {
{ "unsubscribe", PERMISSION_READ, 1, 1, handle_unsubscribe },
{ "update", PERMISSION_CONTROL, 0, 1, handle_update },
{ "urlhandlers", PERMISSION_READ, 0, 0, handle_urlhandlers },
+ { "volume", PERMISSION_CONTROL, 1, 1, handle_volume },
};
static const unsigned num_commands = sizeof(commands) / sizeof(commands[0]);