]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: move CLI access level definitions to cli.h
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2019 11:50:48 +0000 (13:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2019 16:38:00 +0000 (18:38 +0200)
These ones were still in global.h which is misplaced.

include/types/cli.h
include/types/global.h

index d6932f409253d644ccefb63a48a18e0357fb8252..3dee3f830d662ab6f60fee055a2c7e547d679a2f 100644 (file)
 #include <common/mini-clist.h>
 #include <types/applet.h>
 
+/* Access level for a stats socket */
+#define ACCESS_LVL_NONE     0
+#define ACCESS_LVL_USER     1
+#define ACCESS_LVL_OPER     2
+#define ACCESS_LVL_ADMIN    3
+#define ACCESS_LVL_MASK     0x3
+
+#define ACCESS_FD_LISTENERS 0x4  /* expose listeners FDs on stats socket */
+#define ACCESS_MASTER       0x8  /* works with the master (and every other processes) */
+#define ACCESS_MASTER_ONLY  0x10 /* only works with the worker */
+
 struct cli_kw {
        const char *str_kw[5];   /* keywords ended by NULL, limited to 5
                                 separated keywords combination */
index e9cbf3fca4480f84782594a7913eff22c24d4bdf..df6614eb162a63770e635dfa43937498f84c7a88 100644 (file)
 
 #define GTUNE_USE_EVPORTS        (1<<14)
 
-/* Access level for a stats socket */
-#define ACCESS_LVL_NONE     0
-#define ACCESS_LVL_USER     1
-#define ACCESS_LVL_OPER     2
-#define ACCESS_LVL_ADMIN    3
-#define ACCESS_LVL_MASK     0x3
-
-#define ACCESS_FD_LISTENERS 0x4  /* expose listeners FDs on stats socket */
-#define ACCESS_MASTER       0x8  /* works with the master (and every other processes) */
-#define ACCESS_MASTER_ONLY  0x10 /* only works with the worker */
-
 /* SSL server verify mode */
 enum {
        SSL_SERVER_VERIFY_NONE = 0,