diff options
author | Max Kellermann <max@duempel.org> | 2009-11-05 23:47:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-05 23:47:29 +0100 |
commit | 945287358b6e935d994a3411da097aba107e592d (patch) | |
tree | 1eceabefd56eec9fb62007493a170da83184f3b4 /src/output/httpd_internal.h | |
parent | 979cd5a7684ae6089abb1b6280539fe563a783fb (diff) | |
download | mpd-945287358b6e935d994a3411da097aba107e592d.tar.gz mpd-945287358b6e935d994a3411da097aba107e592d.tar.xz mpd-945287358b6e935d994a3411da097aba107e592d.zip |
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.
Diffstat (limited to 'src/output/httpd_internal.h')
-rw-r--r-- | src/output/httpd_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
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,11 +30,18 @@ #include <glib.h> #include <sys/socket.h> +#include <stdbool.h> struct httpd_client; struct httpd_output { /** + * True if the audio output is open and accepts client + * connections. + */ + bool open; + + /** * The configured encoder plugin. */ struct encoder *encoder; |