2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2013-10-20 13:10:54 +02:00
|
|
|
#ifndef MPD_COMMAND_RESULT_HXX
|
|
|
|
#define MPD_COMMAND_RESULT_HXX
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2017-12-12 10:22:20 +01:00
|
|
|
#ifdef _WIN32
|
2013-10-20 13:10:54 +02:00
|
|
|
#include <windows.h>
|
|
|
|
/* damn you, windows.h! */
|
|
|
|
#ifdef ERROR
|
|
|
|
#undef ERROR
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
enum class CommandResult {
|
2012-09-25 11:58:16 +02:00
|
|
|
/**
|
|
|
|
* The command has succeeded, but the "OK" response was not
|
|
|
|
* yet sent to the client.
|
|
|
|
*/
|
2013-10-20 13:10:54 +02:00
|
|
|
OK,
|
2012-09-25 11:58:16 +02:00
|
|
|
|
2012-09-25 12:04:20 +02:00
|
|
|
/**
|
|
|
|
* The connection is now in "idle" mode, and no response shall
|
|
|
|
* be generated.
|
|
|
|
*/
|
2013-10-20 13:10:54 +02:00
|
|
|
IDLE,
|
2012-09-25 12:04:20 +02:00
|
|
|
|
2019-04-03 14:31:57 +02:00
|
|
|
/**
|
|
|
|
* A #BackgroundCommand has been installed.
|
|
|
|
*/
|
|
|
|
BACKGROUND,
|
|
|
|
|
2012-09-25 11:58:16 +02:00
|
|
|
/**
|
|
|
|
* There was an error. The "ACK" response was sent to the
|
|
|
|
* client.
|
|
|
|
*/
|
2013-10-20 13:10:54 +02:00
|
|
|
ERROR,
|
2012-09-25 11:58:16 +02:00
|
|
|
|
2013-11-06 22:01:06 +01:00
|
|
|
/**
|
|
|
|
* The client has asked MPD to close the connection. MPD will
|
|
|
|
* flush the remaining output buffer first.
|
|
|
|
*/
|
|
|
|
FINISH,
|
|
|
|
|
2012-09-25 11:58:16 +02:00
|
|
|
/**
|
|
|
|
* The connection to this client shall be closed.
|
|
|
|
*/
|
2013-10-20 13:10:54 +02:00
|
|
|
CLOSE,
|
2012-09-25 11:58:16 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The MPD process shall be shut down.
|
|
|
|
*/
|
2013-10-20 13:10:54 +02:00
|
|
|
KILL,
|
2008-10-22 21:41:49 +02:00
|
|
|
};
|
2004-02-24 00:41:20 +01:00
|
|
|
|
|
|
|
#endif
|