aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/httpd_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/httpd_internal.h')
-rw-r--r--src/output/httpd_internal.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/output/httpd_internal.h b/src/output/httpd_internal.h
index 2257e27a2..e77a2fe0f 100644
--- a/src/output/httpd_internal.h
+++ b/src/output/httpd_internal.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2009 The Music Player Daemon Project
+ * Copyright (C) 2003-2010 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -29,12 +29,24 @@
#include <glib.h>
+#ifdef WIN32
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#else
#include <sys/socket.h>
+#endif
+#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;
@@ -97,6 +109,12 @@ struct httpd_output {
* function.
*/
char buffer[32768];
+
+ /**
+ * The maximum and current number of clients connected
+ * at the same time.
+ */
+ guint clients_max, clients_cnt;
};
/**