command/queue: add optional position parameter to "add"

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1285
This commit is contained in:
Max Kellermann
2021-10-23 13:00:34 +02:00
parent 35c4c7e8bf
commit 6f595e9abb
5 changed files with 28 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ handle_not_commands(Client &client, Request request, Response &response);
* This array must be sorted!
*/
static constexpr struct command commands[] = {
{ "add", PERMISSION_ADD, 1, 1, handle_add },
{ "add", PERMISSION_ADD, 1, 2, handle_add },
{ "addid", PERMISSION_ADD, 1, 2, handle_addid },
{ "addtagid", PERMISSION_ADD, 3, 3, handle_addtagid },
{ "albumart", PERMISSION_READ, 2, 2, handle_album_art },