mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-18 09:24:31 +00:00
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.
This commit is contained in:
parent
484454d906
commit
fae9edf470
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user