REORG: include: move auth.h to haproxy/auth{,-t}.h
The STATS_DEFAULT_REALM and STATS_DEFAULT_URI were moved to defaults.h.
It was required to include types/pattern.h and types/sample.h since they
are mentioned in function prototypes.
It would be wise to merge this with uri_auth.h later.
diff --git a/include/common/uri_auth.h b/include/common/uri_auth.h
index 3359653..9250f54 100644
--- a/include/common/uri_auth.h
+++ b/include/common/uri_auth.h
@@ -14,8 +14,8 @@
#define _COMMON_URI_AUTH_H
+#include <haproxy/auth-t.h>
#include <haproxy/api.h>
-#include <types/auth.h>
/* This is a list of proxies we are allowed to see. Later, it should go in the
* user list, but before this we need to support de/re-authentication.
@@ -41,21 +41,6 @@
struct uri_auth *next; /* Used at deinit() to build a list of unique elements */
};
-/* This is the default statistics URI */
-#ifdef CONFIG_STATS_DEFAULT_URI
-#define STATS_DEFAULT_URI CONFIG_STATS_DEFAULT_URI
-#else
-#define STATS_DEFAULT_URI "/haproxy?stats"
-#endif
-
-/* This is the default statistics realm */
-#ifdef CONFIG_STATS_DEFAULT_REALM
-#define STATS_DEFAULT_REALM CONFIG_STATS_DEFAULT_REALM
-#else
-#define STATS_DEFAULT_REALM "HAProxy Statistics"
-#endif
-
-
struct stats_admin_rule {
struct list list; /* list linked to from the proxy */
struct acl_cond *cond; /* acl condition to meet */