]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move map to haproxy/map{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 13:10:43 +0000 (15:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
Only small cleanups, and removal of a few includes from files that
didn't need them.

include/haproxy/map-t.h [moved from include/types/map.h with 91% similarity]
include/haproxy/map.h [moved from include/proto/map.h with 89% similarity]
src/cli.c
src/hlua.c
src/map.c
src/stats.c

similarity index 91%
rename from include/types/map.h
rename to include/haproxy/map-t.h
index 5b59ec0ba9e4fd8db6648502f3f0d9aa7daf77ac..902b064a25216cbf6a4f8a02a5c2004e1af2630c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/map.h
+ * include/haproxy/map-t.h
  * This file provides structures and types for MAPs.
  *
  * Copyright (C) 2000-2012 Willy Tarreau - w@1wt.eu
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_MAP_H
-#define _TYPES_MAP_H
+#ifndef _HAPROXY_MAP_T_H
+#define _HAPROXY_MAP_T_H
 
 #include <haproxy/pattern-t.h>
 #include <types/sample.h>
@@ -31,4 +31,4 @@ struct map_descriptor {
        int do_free;                   /* set if <pat> is the original pat and must be freed */
 };
 
-#endif /* _TYPES_MAP_H */
+#endif /* _HAPROXY_MAP_T_H */
similarity index 89%
rename from include/proto/map.h
rename to include/haproxy/map.h
index a63bc8559a8623461c0062d3fea4606060aae699..140148c33dab668ba7204c040ef2f3353e7e311b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/map.h
+ * include/haproxy/map.h
  * This file provides structures and types for pattern matching.
  *
  * Copyright (C) 2000-2013 Willy Tarreau - w@1wt.eu
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_MAP_H
-#define _PROTO_MAP_H
+#ifndef _HAPROXY_MAP_H
+#define _HAPROXY_MAP_H
 
-#include <types/map.h>
+#include <haproxy/map-t.h>
+#include <types/sample.h>
 
 /* maps output sample parser */
 int map_parse_ip(const char *text, struct sample_data *data);
@@ -35,4 +36,4 @@ struct map_reference *map_get_reference(const char *reference);
 int sample_load_map(struct arg *arg, struct sample_conv *conv,
                     const char *file, int line, char **err);
 
-#endif /* _PROTO_PATTERN_H */
+#endif /* _HAPROXY_MAP_H */
index f7cf57ce1b24a79cfe0457e8896ba6d8324c1aba..69f1ec41f8435fb3131c237c33b312787d5c6ae0 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -57,7 +57,6 @@
 #include <proto/log.h>
 #include <haproxy/pipe.h>
 #include <haproxy/protocol.h>
-#include <proto/map.h>
 #include <proto/proxy.h>
 #include <proto/sample.h>
 #include <proto/session.h>
index 594def0b0e0d393427b4e910ce877c2bfb9a0309..a2743f9c8d8268a1ef66352a2c5946dd1682ffb0 100644 (file)
@@ -33,6 +33,7 @@
 #include <haproxy/hlua.h>
 #include <haproxy/hlua_fcn.h>
 #include <haproxy/http_rules.h>
+#include <haproxy/map.h>
 #include <haproxy/obj_type.h>
 #include <haproxy/pattern.h>
 #include <haproxy/tools.h>
@@ -48,7 +49,6 @@
 #include <proto/connection.h>
 #include <proto/stats.h>
 #include <proto/http_fetch.h>
-#include <proto/map.h>
 #include <proto/queue.h>
 #include <proto/payload.h>
 #include <proto/http_ana.h>
index b398f03bbaf6d3f0d632c428c45fb1c1a4da1723..0066257d66b0cdeec79bdeb3ed849e88ffed3560 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -13,6 +13,7 @@
 #include <stdio.h>
 
 #include <haproxy/api.h>
+#include <haproxy/map.h>
 #include <haproxy/pattern.h>
 #include <haproxy/regex.h>
 #include <haproxy/tools.h>
 #include <types/applet.h>
 #include <types/cli.h>
 #include <types/global.h>
-#include <types/map.h>
 #include <types/stats.h>
 
 #include <proto/applet.h>
 #include <haproxy/arg.h>
 #include <proto/cli.h>
 #include <proto/log.h>
-#include <proto/map.h>
 #include <proto/stream_interface.h>
 #include <proto/sample.h>
 
index dcde9c1543a48b9411b3990e63c7ba985bcfe3a7..b0ee43428743ae0456b48579ea07f5b3cb3adc8e 100644 (file)
@@ -36,6 +36,7 @@
 #include <haproxy/pool.h>
 #include <haproxy/list.h>
 #include <haproxy/listener.h>
+#include <haproxy/map-t.h>
 #include <haproxy/pattern-t.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
@@ -58,7 +59,6 @@
 #include <haproxy/freq_ctr.h>
 #include <proto/log.h>
 #include <haproxy/pipe.h>
-#include <proto/map.h>
 #include <proto/proxy.h>
 #include <proto/sample.h>
 #include <proto/session.h>