]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server: export new_server() function
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Oct 2018 12:47:32 +0000 (14:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:51:38 +0000 (13:51 +0100)
The new_server() function will be useful to create a proxy for the
master-worker.

include/proto/server.h
src/server.c

index 1c2d1fdaff4c58381c04093229e1d6d92e57e7e1..75cba471cbf59d88116930d7746d40d24ce6789c 100644 (file)
@@ -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_init_addr(void);
 struct server *cli_find_server(struct appctx *appctx, char *arg);
+struct server *new_server(struct proxy *proxy);
 
 /* functions related to server name resolution */
 int snr_update_srv_status(struct server *s, int has_no_ip);
index c0122b6689f2d8015735ca2c6da80edf4d919d57..8d0ae742021bcab8607fc9c6c429e92894a02924 100644 (file)
@@ -1632,7 +1632,7 @@ static void srv_settings_cpy(struct server *srv, struct server *src, int srv_tmp
                srv->srvrq = src->srvrq;
 }
 
-static struct server *new_server(struct proxy *proxy)
+struct server *new_server(struct proxy *proxy)
 {
        struct server *srv;
        int i;