MINOR: server: export new_server() function
The new_server() function will be useful to create a proxy for the master-worker.
This commit is contained in:
parent
7e1299bb3a
commit
313bfd18c1
|
@ -50,6 +50,7 @@ void srv_compute_all_admin_states(struct proxy *px);
|
||||||
int srv_set_addr_via_libc(struct server *srv, int *err_code);
|
int srv_set_addr_via_libc(struct server *srv, int *err_code);
|
||||||
int srv_init_addr(void);
|
int srv_init_addr(void);
|
||||||
struct server *cli_find_server(struct appctx *appctx, char *arg);
|
struct server *cli_find_server(struct appctx *appctx, char *arg);
|
||||||
|
struct server *new_server(struct proxy *proxy);
|
||||||
|
|
||||||
/* functions related to server name resolution */
|
/* functions related to server name resolution */
|
||||||
int snr_update_srv_status(struct server *s, int has_no_ip);
|
int snr_update_srv_status(struct server *s, int has_no_ip);
|
||||||
|
|
|
@ -1632,7 +1632,7 @@ static void srv_settings_cpy(struct server *srv, struct server *src, int srv_tmp
|
||||||
srv->srvrq = src->srvrq;
|
srv->srvrq = src->srvrq;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct server *new_server(struct proxy *proxy)
|
struct server *new_server(struct proxy *proxy)
|
||||||
{
|
{
|
||||||
struct server *srv;
|
struct server *srv;
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue