]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move lb_map.h to haproxy/lb_map{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 18:22:59 +0000 (20:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
Nothing was changed.

include/haproxy/lb_map-t.h [moved from include/types/lb_map.h with 90% similarity]
include/haproxy/lb_map.h [moved from include/proto/lb_map.h with 91% similarity]
include/types/backend.h
src/backend.c
src/cfgparse.c
src/lb_map.c

similarity index 90%
rename from include/types/lb_map.h
rename to include/haproxy/lb_map-t.h
index 5409a8152cf4104976833ff84106f8e7da161037..b2c556cabbdc8cc409acf2cb85b969499383fe74 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/lb_map.h
+ * include/haproxy/lb_map-t.h
  * Types for map-based load-balancing (RR and HASH)
  *
  * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_LB_MAP_H
-#define _TYPES_LB_MAP_H
+#ifndef _HAPROXY_LB_MAP_T_H
+#define _HAPROXY_LB_MAP_T_H
 
 #include <haproxy/api-t.h>
 #include <types/server.h>
@@ -30,7 +30,7 @@ struct lb_map {
        int rr_idx;             /* next server to be elected in round robin mode */
 };
 
-#endif /* _TYPES_LB_MAP_H */
+#endif /* _HAPROXY_LB_MAP_T_H */
 
 /*
  * Local variables:
similarity index 91%
rename from include/proto/lb_map.h
rename to include/haproxy/lb_map.h
index 0dc089bc7ed161936eacb52dbde146c90e2bc3bf..2ab7158c24b7d72b4ec89831facf6b28b6a3df7f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/lb_map.h
+ * include/haproxy/lb_map.h
  * Map-based load-balancing (RR and HASH)
  *
  * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_LB_MAP_H
-#define _PROTO_LB_MAP_H
+#ifndef _HAPROXY_LB_MAP_H
+#define _HAPROXY_LB_MAP_H
 
 #include <haproxy/api.h>
 #include <types/proxy.h>
@@ -31,7 +31,7 @@ void init_server_map(struct proxy *p);
 struct server *map_get_server_rr(struct proxy *px, struct server *srvtoavoid);
 struct server *map_get_server_hash(struct proxy *px, unsigned int hash);
 
-#endif /* _PROTO_LB_MAP_H */
+#endif /* _HAPROXY_LB_MAP_H */
 
 /*
  * Local variables:
index 8a1f3bd11dd0f2653c6899a5898b883e9979f4fb..120081f7b22d7e05b6172360ad3cf9ee36747168 100644 (file)
 #include <haproxy/lb_fas-t.h>
 #include <haproxy/lb_fwlc-t.h>
 #include <haproxy/lb_fwrr-t.h>
+#include <haproxy/lb_map-t.h>
 #include <haproxy/api-t.h>
 #include <haproxy/thread.h>
 
-#include <types/lb_map.h>
 #include <types/server.h>
 
 /* Parameters for lbprm.algo */
index f78742771621d0c9b3bc10fe93a2de69ecd60aed..838769425ebd909290896212df47fd189231cbd5 100644 (file)
@@ -31,6 +31,7 @@
 #include <haproxy/lb_fas.h>
 #include <haproxy/lb_fwlc.h>
 #include <haproxy/lb_fwrr.h>
+#include <haproxy/lb_map.h>
 #include <haproxy/obj_type.h>
 #include <haproxy/payload.h>
 #include <haproxy/session.h>
@@ -44,7 +45,6 @@
 #include <haproxy/arg.h>
 #include <proto/backend.h>
 #include <proto/channel.h>
-#include <proto/lb_map.h>
 #include <proto/log.h>
 #include <haproxy/protocol.h>
 #include <proto/http_ana.h>
index e3d33edb18b61eec8d2f46e7e1cd9f43012c50e9..429954ca18091b460ba4f35964c039f8102400fb 100644 (file)
@@ -50,6 +50,7 @@
 #include <haproxy/lb_fas.h>
 #include <haproxy/lb_fwlc.h>
 #include <haproxy/lb_fwrr.h>
+#include <haproxy/lb_map.h>
 #include <haproxy/listener.h>
 #include <haproxy/mailers-t.h>
 #include <haproxy/obj_type-t.h>
@@ -70,7 +71,6 @@
 #include <proto/backend.h>
 #include <proto/channel.h>
 #include <proto/filters.h>
-#include <proto/lb_map.h>
 #include <proto/log.h>
 #include <haproxy/protocol.h>
 #include <proto/http_ana.h>
index c5e0f89d61932abeabf1f1001707b8dcc382b4de..2b00fdb59d7dbb34d76bea71b0b480506b1bf082 100644 (file)
  */
 
 #include <haproxy/api.h>
+#include <haproxy/lb_map.h>
 #include <import/eb32tree.h>
 
 #include <types/server.h>
 
 #include <proto/backend.h>
-#include <proto/lb_map.h>
 #include <proto/queue.h>
 
 /* this function updates the map according to server <srv>'s new state.