client/Process: convert functions to Client methods

This commit is contained in:
Max Kellermann
2019-04-03 20:03:17 +02:00
parent 9f79d034b3
commit 380f73c112
4 changed files with 41 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2018 The Music Player Daemon Project
* Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -21,6 +21,7 @@
#define MPD_CLIENT_H
#include "ClientMessage.hxx"
#include "command/CommandResult.hxx"
#include "command/CommandListBuilder.hxx"
#include "tag/Mask.hxx"
#include "event/FullyBufferedSocket.hxx"
@@ -226,6 +227,11 @@ public:
const Storage *GetStorage() const noexcept;
private:
CommandResult ProcessCommandList(bool list_ok,
std::list<std::string> &&list) noexcept;
CommandResult ProcessLine(char *line) noexcept;
/* virtual methods from class BufferedSocket */
InputResult OnSocketInput(void *data, size_t length) noexcept override;
void OnSocketError(std::exception_ptr ep) noexcept override;