]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cfgparse: add a new field flags in cfg_keyword
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 6 May 2021 15:33:29 +0000 (17:33 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 May 2021 12:12:27 +0000 (14:12 +0200)
This field will be used to add various mechanism to config parsing.
Currently no flag value is implemented. The following commit will
implement experimental keywords.

include/haproxy/cfgparse.h

index 2266ac6d92605a87a10eebc7c53c3192750c2984..b32c90dca7cde6aa5b8b1595b1a85b8a2a9b16aa 100644 (file)
@@ -42,6 +42,10 @@ enum kw_mod {
        KWM_DEF,      /* "default" prefixed before the keyword */
 };
 
+enum cfg_keyword_flags {
+       KWF_UNIMPLEMENTED,  // TO REMOVE once an enum value is implemented
+};
+
 struct cfg_keyword {
        int section;                            /* section type for this keyword */
        const char *kw;                         /* the keyword itself */
@@ -53,6 +57,7 @@ struct cfg_keyword {
                     const char *file,          /* config file name */
                     int line,                  /* config file line number */
                     char **err);               /* error or warning message output pointer */
+       int flags;
 };
 
 /* A keyword list. It is a NULL-terminated array of keywords. It embeds a