]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move lb_fwrr.h to haproxy/lb_fwrr{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 12:45:03 +0000 (14:45 +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_fwrr-t.h [moved from include/types/lb_fwrr.h with 92% similarity]
include/haproxy/lb_fwrr.h [moved from include/proto/lb_fwrr.h with 88% similarity]
include/types/backend.h
src/backend.c
src/cfgparse.c

similarity index 92%
rename from include/types/lb_fwrr.h
rename to include/haproxy/lb_fwrr-t.h
index 6a2a04c20536783af4fc517b4c373da49669f83b..0e12e1ba0bd88a2329abedf8e60d236dee279307 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/lb_fwrr.h
+ * include/haproxy/lb_fwrr-t.h
  * Types for Fast Weighted Round Robin 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_FWRR_H
-#define _TYPES_LB_FWRR_H
+#ifndef _HAPROXY_LB_FWRR_T_H
+#define _HAPROXY_LB_FWRR_T_H
 
-#include <haproxy/api-t.h>
 #include <import/ebtree.h>
 
 /* This structure is used to apply fast weighted round robin on a server group */
@@ -41,7 +40,7 @@ struct lb_fwrr {
        struct fwrr_group bck;  /* weighted round robin on the backup servers */
 };
 
-#endif /* _TYPES_LB_FWRR_H */
+#endif /* _HAPROXY_LB_FWRR_T_H */
 
 /*
  * Local variables:
similarity index 88%
rename from include/proto/lb_fwrr.h
rename to include/haproxy/lb_fwrr.h
index c23a4710b8fcd58ee2bc6ec2cfbf119bb119c70d..af389966e517387b851c0cba4879172fca77ed56 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/lb_fwrr.h
+ * include/haproxy/lb_fwrr.h
  * Fast Weighted Round Robin 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_FWRR_H
-#define _PROTO_LB_FWRR_H
+#ifndef _HAPROXY_LB_FWRR_H
+#define _HAPROXY_LB_FWRR_H
 
 #include <haproxy/api.h>
+#include <haproxy/lb_fwrr-t.h>
 #include <types/proxy.h>
 #include <types/server.h>
 
 void fwrr_init_server_groups(struct proxy *p);
 struct server *fwrr_get_next_server(struct proxy *p, struct server *srvtoavoid);
 
-#endif /* _PROTO_LB_FWRR_H */
+#endif /* _HAPROXY_LB_FWRR_H */
 
 /*
  * Local variables:
index 19a45f033c9134373c946fc20fab1809ee2f9060..8a1f3bd11dd0f2653c6899a5898b883e9979f4fb 100644 (file)
 #include <haproxy/lb_chash-t.h>
 #include <haproxy/lb_fas-t.h>
 #include <haproxy/lb_fwlc-t.h>
+#include <haproxy/lb_fwrr-t.h>
 #include <haproxy/api-t.h>
 #include <haproxy/thread.h>
 
-#include <types/lb_fwrr.h>
 #include <types/lb_map.h>
 #include <types/server.h>
 
index bbf967231777a568a0cad06401c1ed221567cc5c..0d18e15f31e0f99fb8eb9134ee98f6718b815ac0 100644 (file)
@@ -28,6 +28,7 @@
 #include <haproxy/lb_chash.h>
 #include <haproxy/lb_fas.h>
 #include <haproxy/lb_fwlc.h>
+#include <haproxy/lb_fwrr.h>
 #include <haproxy/obj_type.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -40,7 +41,6 @@
 #include <proto/backend.h>
 #include <proto/channel.h>
 #include <proto/checks.h>
-#include <proto/lb_fwrr.h>
 #include <proto/lb_map.h>
 #include <proto/log.h>
 #include <proto/payload.h>
index 6571b85de0d295f00e121243dd180b4ff0f6784b..99c5c24a4ac51f19c91f4c5c362ec8fa26734d90 100644 (file)
@@ -46,6 +46,7 @@
 #include <haproxy/lb_chash.h>
 #include <haproxy/lb_fas.h>
 #include <haproxy/lb_fwlc.h>
+#include <haproxy/lb_fwrr.h>
 #include <haproxy/mailers-t.h>
 #include <haproxy/obj_type-t.h>
 #include <haproxy/pool.h>
@@ -66,7 +67,6 @@
 #include <proto/checks.h>
 #include <proto/stats.h>
 #include <proto/filters.h>
-#include <proto/lb_fwrr.h>
 #include <proto/lb_map.h>
 #include <proto/listener.h>
 #include <proto/log.h>