client/BackgroundCommand: infrastructure for commands running in background

This commit is contained in:
Max Kellermann
2019-04-03 14:31:57 +02:00
parent 28fc1d555f
commit 9f1c23e217
11 changed files with 272 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ Client::ProcessCommandList(bool list_ok,
CommandResult
Client::ProcessLine(char *line) noexcept
{
assert(!background_command);
if (!IsLowerAlphaASCII(*line)) {
/* all valid MPD commands begin with a lower case
letter; this could be a badly routed HTTP