[MINOR] stats: add a new node-name setting
The new "node-name" stats setting enables reporting of a node ID on
the stats page. It is possible to return the system's host name as
well as a specific name.
diff --git a/include/common/uri_auth.h b/include/common/uri_auth.h
index e52387c..132be21 100644
--- a/include/common/uri_auth.h
+++ b/include/common/uri_auth.h
@@ -38,6 +38,7 @@
int uri_len; /* the prefix length */
char *uri_prefix; /* the prefix we want to match */
char *auth_realm; /* the realm reported to the client */
+ char *node_name; /* the node name reported to the client */
int refresh; /* refresh interval for the browser (in seconds) */
int flags; /* some flags describing the statistics page */
struct user_auth *users; /* linked list of valid user:passwd couples */
@@ -74,6 +75,7 @@
struct uri_auth *stats_set_flag(struct uri_auth **root, int flag);
struct uri_auth *stats_add_auth(struct uri_auth **root, char *user);
struct uri_auth *stats_add_scope(struct uri_auth **root, char *scope);
+struct uri_auth *stats_set_node_name(struct uri_auth **root, char *name);
#endif /* _COMMON_URI_AUTH_H */