]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move lb_fwlc.h to haproxy/lb_fwlc{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 12:41:04 +0000 (14:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
Nothing fancy, includes were already OK. The proto didn't reference the
type, this was fixed. Still references proxy.h and server.h from types/.

include/haproxy/lb_fwlc-t.h [moved from include/types/lb_fwlc.h with 89% similarity]
include/haproxy/lb_fwlc.h [moved from include/proto/lb_fwlc.h with 88% similarity]
include/types/backend.h
src/backend.c
src/cfgparse.c

similarity index 89%
rename from include/types/lb_fwlc.h
rename to include/haproxy/lb_fwlc-t.h
index c87d61ed38b7a7b3b947d3cffad120206ad33b24..e5064be1153a23f9df47da409db40493095c131c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/lb_fwlc.h
+ * include/haproxy/lb_fwlc-t.h
  * Types for Fast Weighted Least Connection load balancing algorithm.
  *
  * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_LB_FWLC_H
-#define _TYPES_LB_FWLC_H
+#ifndef _HAPROXY_LB_FWLC_T_H
+#define _HAPROXY_LB_FWLC_T_H
 
-#include <haproxy/api-t.h>
 #include <import/ebtree.h>
 
 struct lb_fwlc {
@@ -30,7 +29,7 @@ struct lb_fwlc {
        struct eb_root bck;     /* weighted least conns on the backup servers */
 };
 
-#endif /* _TYPES_LB_FWLC_H */
+#endif /* _HAPROXY_LB_FWLC_T_H */
 
 /*
  * Local variables:
similarity index 88%
rename from include/proto/lb_fwlc.h
rename to include/haproxy/lb_fwlc.h
index a7a46fff7907aa98abd3cc80977fcbbe226a4d5e..5a549e376050715534522291ae83f1d86aca022b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/lb_fwlc.h
+ * include/haproxy/lb_fwlc.h
  * Fast Weighted Least Connection load balancing algorithm.
  *
  * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_LB_FWLC_H
-#define _PROTO_LB_FWLC_H
+#ifndef _HAPROXY_LB_FWLC_H
+#define _HAPROXY_LB_FWLC_H
 
 #include <haproxy/api.h>
+#include <haproxy/lb_fwlc-t.h>
 #include <types/proxy.h>
 #include <types/server.h>
 
 struct server *fwlc_get_next_server(struct proxy *p, struct server *srvtoavoid);
 void fwlc_init_server_tree(struct proxy *p);
 
-#endif /* _PROTO_LB_FWLC_H */
+#endif /* _HAPROXY_LB_FWLC_H */
 
 /*
  * Local variables:
index b06dfef7c8e9e038f9c51e37acac58ecd5b64ae1..19a45f033c9134373c946fc20fab1809ee2f9060 100644 (file)
 
 #include <haproxy/lb_chash-t.h>
 #include <haproxy/lb_fas-t.h>
+#include <haproxy/lb_fwlc-t.h>
 #include <haproxy/api-t.h>
 #include <haproxy/thread.h>
 
-#include <types/lb_fwlc.h>
 #include <types/lb_fwrr.h>
 #include <types/lb_map.h>
 #include <types/server.h>
index acb80fabeab7b0b43240e3fb221b5fd1d9d8cd5a..bbf967231777a568a0cad06401c1ed221567cc5c 100644 (file)
@@ -27,6 +27,7 @@
 #include <haproxy/htx.h>
 #include <haproxy/lb_chash.h>
 #include <haproxy/lb_fas.h>
+#include <haproxy/lb_fwlc.h>
 #include <haproxy/obj_type.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -39,7 +40,6 @@
 #include <proto/backend.h>
 #include <proto/channel.h>
 #include <proto/checks.h>
-#include <proto/lb_fwlc.h>
 #include <proto/lb_fwrr.h>
 #include <proto/lb_map.h>
 #include <proto/log.h>
index cde7ac00b85523f9fe6ee8a47c45938ccf412efa..6571b85de0d295f00e121243dd180b4ff0f6784b 100644 (file)
@@ -45,6 +45,7 @@
 #include <haproxy/http_rules.h>
 #include <haproxy/lb_chash.h>
 #include <haproxy/lb_fas.h>
+#include <haproxy/lb_fwlc.h>
 #include <haproxy/mailers-t.h>
 #include <haproxy/obj_type-t.h>
 #include <haproxy/pool.h>
@@ -65,7 +66,6 @@
 #include <proto/checks.h>
 #include <proto/stats.h>
 #include <proto/filters.h>
-#include <proto/lb_fwlc.h>
 #include <proto/lb_fwrr.h>
 #include <proto/lb_map.h>
 #include <proto/listener.h>