summaryrefslogtreecommitdiff
path: root/src/plugin.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-11-28 10:27:01 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 19:54:28 -0400
commitf24e6d696aae1cc08cf92a285b56bb6a274efc13 (patch)
tree009e03502c1e30606772a7fc746a55603ea6dc6a /src/plugin.h
parent50bdb55de804953378171cd1caf82bef27ec6cab (diff)
downloadlighttpd-git-f24e6d696aae1cc08cf92a285b56bb6a274efc13.tar.gz
[multiple] plugin_stats array
use global rather than passing around (server *) just for that li_itostrn() and li_utostrn() return string length (rather than requiring subsequent strlen() to find length)
Diffstat (limited to 'src/plugin.h')
-rw-r--r--src/plugin.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugin.h b/src/plugin.h
index 5ea9450d..b3d2e82b 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -7,6 +7,23 @@
#include "array.h"
#include "plugin_config.h"
+
+/**
+ * The status array can carry all the status information you want
+ * the key to the array is <module-prefix>.<name>
+ * and the values are counters
+ *
+ * example:
+ * fastcgi.backends = 10
+ * fastcgi.active-backends = 6
+ * fastcgi.backend.<key>.load = 24
+ * fastcgi.backend.<key>....
+ *
+ * fastcgi.backend.<key>.disconnects = ...
+ */
+extern array plugin_stats;
+
+
#define SERVER_FUNC(x) \
static handler_t x(server *srv, void *p_d)