aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientRead.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-20 13:10:54 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 13:10:54 +0200
commitcf4d80fc655a399615529bdd27e0be284754c5ab (patch)
tree531f5c7af53ce4abdfd9013cbbc9e8056c934e5a /src/ClientRead.cxx
parent8118bc93a85a903ddf95825c1ce7ecbbfff4780b (diff)
downloadmpd-cf4d80fc655a399615529bdd27e0be284754c5ab.tar.gz
mpd-cf4d80fc655a399615529bdd27e0be284754c5ab.tar.xz
mpd-cf4d80fc655a399615529bdd27e0be284754c5ab.zip
command: convert command_return to to a strictly-typed enum
Diffstat (limited to 'src/ClientRead.cxx')
-rw-r--r--src/ClientRead.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ClientRead.cxx b/src/ClientRead.cxx
index 956f4f71b..2bb3c56c0 100644
--- a/src/ClientRead.cxx
+++ b/src/ClientRead.cxx
@@ -40,19 +40,19 @@ Client::OnSocketInput(void *data, size_t length)
BufferedSocket::ConsumeInput(newline + 1 - p);
- enum command_return result = client_process_line(*this, p);
+ CommandResult result = client_process_line(*this, p);
switch (result) {
- case COMMAND_RETURN_OK:
- case COMMAND_RETURN_IDLE:
- case COMMAND_RETURN_ERROR:
+ case CommandResult::OK:
+ case CommandResult::IDLE:
+ case CommandResult::ERROR:
break;
- case COMMAND_RETURN_KILL:
+ case CommandResult::KILL:
Close();
main_loop->Break();
return InputResult::CLOSED;
- case COMMAND_RETURN_CLOSE:
+ case CommandResult::CLOSE:
Close();
return InputResult::CLOSED;
}