Technology
 

Music Player Daemon Command List

From Music Player Daemon Community Wiki

Purpose: To facilitate faster commands, you can pass a list of all commands at once using a command list. It does not execute any commands until the list has ended.

Usage:

To begin the command list:

command_list_begin

or:

command_list_ok_begin

And ends with:

command_list_end

Return:

If command_list_begin is used, The return value is the concatenation of the return values for each command in the list. On success for all commands, OK is returned. If a command fails, no more commands are executed and the appropriate ACK error is returned.

If command_list_ok_begin is used, list_OK and a newline is returned for each successful command executed in the command list, otherwise the appropiate ACK error is returned.