From 945287358b6e935d994a3411da097aba107e592d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Nov 2009 23:47:29 +0100 Subject: output/httpd: bind port when output is enabled Implement the methods enable() and disable(). Bind the HTTP port in the enable() method, but reject all incoming connections until the output is opened. --- src/output/httpd_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/output/httpd_internal.h') diff --git a/src/output/httpd_internal.h b/src/output/httpd_internal.h index 83e9498c6..22155b7ba 100644 --- a/src/output/httpd_internal.h +++ b/src/output/httpd_internal.h @@ -30,10 +30,17 @@ #include #include +#include struct httpd_client; struct httpd_output { + /** + * True if the audio output is open and accepts client + * connections. + */ + bool open; + /** * The configured encoder plugin. */ -- cgit v1.2.3