mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MINOR: tools: add a generic struct "name_desc" for name-description pairs
In prompts on the CLI we now commonly need to propose a keyword name and a description and it doesn't make sense to define a new struct for each such pairs. Let's simply have a generic "name_desc" for this.
This commit is contained in:
parent
7185b789f9
commit
fb4ba91ac1
1 changed files with 6 additions and 0 deletions
|
|
@ -87,6 +87,12 @@ struct split_url {
|
|||
int host_len;
|
||||
};
|
||||
|
||||
/* generic structure associating a name and a value, for use in arrays */
|
||||
struct name_desc {
|
||||
const char *name;
|
||||
const char *desc;
|
||||
};
|
||||
|
||||
extern THREAD_LOCAL int itoa_idx; /* index of next itoa_str to use */
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue