command/queue: add position parameter to "load"

Another one from https://github.com/MusicPlayerDaemon/MPD/issues/888
This commit is contained in:
Max Kellermann
2021-10-14 15:11:04 +02:00
parent 2e5ca1cbd2
commit 608896571c
4 changed files with 24 additions and 3 deletions

View File

@@ -135,7 +135,7 @@ static constexpr struct command commands[] = {
{ "listplaylist", PERMISSION_READ, 1, 1, handle_listplaylist },
{ "listplaylistinfo", PERMISSION_READ, 1, 1, handle_listplaylistinfo },
{ "listplaylists", PERMISSION_READ, 0, 0, handle_listplaylists },
{ "load", PERMISSION_ADD, 1, 2, handle_load },
{ "load", PERMISSION_ADD, 1, 3, handle_load },
{ "lsinfo", PERMISSION_READ, 0, 1, handle_lsinfo },
{ "mixrampdb", PERMISSION_PLAYER, 1, 1, handle_mixrampdb },
{ "mixrampdelay", PERMISSION_PLAYER, 1, 1, handle_mixrampdelay },