command: add command "getvol"

Closes https://github.com/MusicPlayerDaemon/MPD/issues/979
This commit is contained in:
Max Kellermann
2020-10-16 17:46:58 +02:00
parent 08360e401d
commit 871bf3b88f
5 changed files with 28 additions and 0 deletions
+1
View File
@@ -113,6 +113,7 @@ static constexpr struct command commands[] = {
#ifdef ENABLE_CHROMAPRINT
{ "getfingerprint", PERMISSION_READ, 1, 1, handle_getfingerprint },
#endif
{ "getvol", PERMISSION_READ, 0, 0, handle_getvol },
{ "idle", PERMISSION_READ, 0, -1, handle_idle },
{ "kill", PERMISSION_ADMIN, -1, -1, handle_kill },
#ifdef ENABLE_DATABASE