Add new parameter type MXS_MODULE_PARAM_SERVERLIST

This is a list of servers, separated by commas. When queried as a
config setting, returns a null-terminated array of SERVER*:s. The
commit includes a serverlist parsing function, which should probably
be used anywhere a similarly formed string is parsed.
This commit is contained in:
Esa Korhonen
2017-03-14 11:19:00 +02:00
parent dd82c46596
commit 3129efb3f7
6 changed files with 168 additions and 0 deletions

View File

@ -256,6 +256,7 @@ bool server_remove_parameter(SERVER *server, const char *name);
extern int server_free(SERVER *server);
extern SERVER *server_find_by_unique_name(const char *name);
extern SERVER** server_find_by_unique_names(char **server_names, int size);
extern SERVER *server_find(const char *servname, unsigned short port);
extern char *server_status(const SERVER *);
extern void server_clear_set_status(SERVER *server, int specified_bits, int bits_to_set);