aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/HttpdInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-31 17:01:08 +0100
committerMax Kellermann <max@duempel.org>2013-12-31 17:01:08 +0100
commit69a9d2919070c2564d6e573220df71c179b57246 (patch)
treef0b772f02806d467fb6d7b2e5b169631ef2832b6 /src/output/HttpdInternal.hxx
parente2425592b6fba5c739576e7d5f7d3a2777055e6f (diff)
downloadmpd-69a9d2919070c2564d6e573220df71c179b57246.tar.gz
mpd-69a9d2919070c2564d6e573220df71c179b57246.tar.xz
mpd-69a9d2919070c2564d6e573220df71c179b57246.zip
output/httpd: move code to methods Delay(), Play(), Cancel()
Diffstat (limited to '')
-rw-r--r--src/output/HttpdInternal.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output/HttpdInternal.hxx b/src/output/HttpdInternal.hxx
index a9d24e840..5c9e9233e 100644
--- a/src/output/HttpdInternal.hxx
+++ b/src/output/HttpdInternal.hxx
@@ -213,6 +213,9 @@ struct HttpdOutput final : private ServerSocket {
*/
void SendHeader(HttpdClient &client) const;
+ gcc_pure
+ unsigned Delay() const;
+
/**
* Reads data from the encoder (as much as available) and
* returns it as a new #page object.
@@ -235,6 +238,10 @@ struct HttpdOutput final : private ServerSocket {
void SendTag(const Tag *tag);
+ size_t Play(const void *chunk, size_t size, Error &error);
+
+ void CancelAllClients();
+
private:
virtual void OnAccept(int fd, const sockaddr &address,
size_t address_length, int uid) override;