From: Amaury Denoyelle Date: Thu, 6 May 2021 15:33:29 +0000 (+0200) Subject: MINOR: cfgparse: add a new field flags in cfg_keyword X-Git-Tag: v2.4-dev19~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae9edf47077adccf180cf993b797d20c954def7;p=thirdparty%2Fhaproxy.git MINOR: cfgparse: add a new field flags in cfg_keyword 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. --- diff --git a/include/haproxy/cfgparse.h b/include/haproxy/cfgparse.h index 2266ac6d92..b32c90dca7 100644 --- a/include/haproxy/cfgparse.h +++ b/include/haproxy/cfgparse.h @@ -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