]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move dns.h to haproxy/dns{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 08:53:16 +0000 (10:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
The files were moved as-is.

13 files changed:
include/haproxy/dns-t.h [moved from include/types/dns.h with 99% similarity]
include/haproxy/dns.h [moved from include/proto/dns.h with 94% similarity]
include/proto/server.h
include/types/server.h
src/cfgparse.c
src/checks.c
src/cli.c
src/dns.c
src/haproxy.c
src/server.c
src/stats.c
src/stream.c
src/tools.c

similarity index 99%
rename from include/types/dns.h
rename to include/haproxy/dns-t.h
index 8b25352e81efe7c73f850d8676c5ea249058f22c..62e8b7fa80dca4358ea0165f998ff76d6db2a5dc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/dns.h
+ * include/haproxy/dns-t.h
  * This file provides structures and types for DNS.
  *
  * Copyright (C) 2014 Baptiste Assmann <bedis9@gmail.com>
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_DNS_H
-#define _TYPES_DNS_H
+#ifndef _HAPROXY_DNS_T_H
+#define _HAPROXY_DNS_T_H
 
 #include <import/eb32tree.h>
 
@@ -357,4 +357,4 @@ struct dns_srvrq {
        struct list list;                       /* Next SRV RQ for the same proxy */
 };
 
-#endif /* _TYPES_DNS_H */
+#endif /* _HAPROXY_DNS_T_H */
similarity index 94%
rename from include/proto/dns.h
rename to include/haproxy/dns.h
index 35eb2bf31ac6765dd21aa22dccbdeb80dec71fbe..d20977833641dfdc6ec14f18a20e3066ad5df04b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/dns.h
+ * include/haproxy/dns.h
  * This file provides functions related to DNS protocol
  *
  * Copyright (C) 2014 Baptiste Assmann <bedis9@gmail.com>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_DNS_H
-#define _PROTO_DNS_H
+#ifndef _HAPROXY_DNS_H
+#define _HAPROXY_DNS_H
 
 #include <haproxy/action-t.h>
-#include <types/dns.h>
+#include <haproxy/dns-t.h>
 
 extern struct list dns_resolvers;
 extern unsigned int dns_failed_resolutions;
@@ -49,4 +49,4 @@ enum act_parse_ret dns_parse_do_resolve(const char **args, int *orig_arg, struct
 int check_action_do_resolve(struct act_rule *rule, struct proxy *px, char **err);
 
 
-#endif // _PROTO_DNS_H
+#endif // _HAPROXY_DNS_H
index 0363f02d58f944b5080f5bfaa9136ece7290e693..b84be433f6fed264417a77a72eef3a7ec3724ed1 100644 (file)
@@ -25,9 +25,9 @@
 #include <unistd.h>
 
 #include <haproxy/api.h>
+#include <haproxy/dns-t.h>
 #include <haproxy/time.h>
 #include <types/applet.h>
-#include <types/dns.h>
 #include <types/proxy.h>
 #include <types/queue.h>
 #include <types/server.h>
index 9faa2ea3c00809f05584bd6ee4e22e793546ea93..9cf5ade646cf9e970179671b964f925fda753157 100644 (file)
@@ -25,6 +25,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
+#include <haproxy/dns-t.h>
 #include <haproxy/api-t.h>
 #include <haproxy/list-t.h>
 #include <haproxy/thread.h>
@@ -34,7 +35,6 @@
 
 #include <types/connection.h>
 #include <types/counters.h>
-#include <types/dns.h>
 #include <haproxy/freq_ctr-t.h>
 #include <types/obj_type.h>
 #include <types/proxy.h>
index 23a290e3a9c385136c4f1e8b0279e411f8209236..5302a18cc51bdedb47526bd28b126776643df6cb 100644 (file)
@@ -38,6 +38,7 @@
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
+#include <haproxy/dns.h>
 #include <haproxy/errors.h>
 #include <haproxy/pool.h>
 #include <haproxy/tools.h>
 #include <types/obj_type.h>
 #include <types/peers.h>
 #include <types/mailers.h>
-#include <types/dns.h>
 #include <types/stats.h>
 
 #include <proto/acl.h>
 #include <proto/backend.h>
 #include <proto/channel.h>
 #include <proto/checks.h>
-#include <proto/dns.h>
 #include <proto/stats.h>
 #include <proto/filters.h>
 #include <proto/frontend.h>
index 81ca77b7ab55199a4ae2ec976cf7c78458956247..314a1b286d9c30ebbfe07bb83a11af7e650eb6fa 100644 (file)
@@ -34,6 +34,7 @@
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
+#include <haproxy/dns.h>
 #include <haproxy/istbuf.h>
 #include <haproxy/list.h>
 #include <haproxy/regex.h>
@@ -46,7 +47,6 @@
 #include <haproxy/htx.h>
 
 #include <types/global.h>
-#include <types/dns.h>
 #include <types/stats.h>
 
 #include <haproxy/arg.h>
@@ -67,7 +67,6 @@
 #include <proto/task.h>
 #include <proto/vars.h>
 #include <proto/log.h>
-#include <proto/dns.h>
 #include <haproxy/proto_udp.h>
 #include <proto/ssl_sock.h>
 #include <proto/sample.h>
index 11c8dc565acbe09163972e35f468395f58ee5d08..7f51a9b366ea27ec68234fe40e6c02ac66b20d66 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -28,6 +28,7 @@
 
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
+#include <haproxy/dns-t.h>
 #include <haproxy/list.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
@@ -38,7 +39,6 @@
 
 #include <types/applet.h>
 #include <types/global.h>
-#include <types/dns.h>
 #include <types/stats.h>
 
 #include <haproxy/activity.h>
index d251674c97856d96f0b87ed190607c4b2082fcf1..c1fe1e29b6c1115732338f9b7c356367d737962a 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -22,6 +22,7 @@
 #include <haproxy/action.h>
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
+#include <haproxy/dns.h>
 #include <haproxy/errors.h>
 #include <haproxy/time.h>
 #include <haproxy/ticks.h>
 #include <types/applet.h>
 #include <types/cli.h>
 #include <types/global.h>
-#include <types/dns.h>
 #include <types/stats.h>
 
 #include <proto/channel.h>
 #include <proto/cli.h>
 #include <proto/checks.h>
-#include <proto/dns.h>
 #include <haproxy/fd.h>
 #include <proto/http_ana.h>
 #include <proto/http_rules.h>
index 33b4abf279911c37e24bdca748622074f9fec328..95c35de7534864d02a81b3378c1198957ebfdcb5 100644 (file)
@@ -85,6 +85,7 @@
 #include <haproxy/base64.h>
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
+#include <haproxy/dns.h>
 #include <haproxy/dynbuf.h>
 #include <haproxy/errors.h>
 #include <haproxy/hlua.h>
 #include <proto/stream.h>
 #include <proto/signal.h>
 #include <proto/task.h>
-#include <proto/dns.h>
 #include <proto/vars.h>
 #include <proto/ssl_sock.h>
 
index 5c26de3b74971ed50c304a1dd8f5dc25f7391b0a..468814c408beaaae7b458579c1389b42321357a6 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <common/cfgparse.h>
 #include <haproxy/dict-t.h>
+#include <haproxy/dns.h>
 #include <haproxy/errors.h>
 #include <haproxy/namespace.h>
 #include <haproxy/time.h>
@@ -27,7 +28,6 @@
 #include <types/cli.h>
 #include <types/global.h>
 #include <types/cli.h>
-#include <types/dns.h>
 #include <types/stats.h>
 
 #include <proto/applet.h>
@@ -43,7 +43,6 @@
 #include <proto/stream_interface.h>
 #include <proto/stats.h>
 #include <proto/task.h>
-#include <proto/dns.h>
 #include <netinet/tcp.h>
 
 #include <import/ebsttree.h>
index 2700ab50a9f9bc2143915c10b883b512fde388e8..8f6787489816e53c74fd238f585a3f65feebe467 100644 (file)
@@ -28,6 +28,7 @@
 #include <common/cfgparse.h>
 #include <haproxy/compression.h>
 #include <haproxy/debug.h>
+#include <haproxy/dns.h>
 #include <haproxy/http.h>
 #include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <types/applet.h>
 #include <types/cli.h>
 #include <types/global.h>
-#include <types/dns.h>
 #include <types/stats.h>
 
 #include <proto/backend.h>
 #include <proto/channel.h>
 #include <proto/checks.h>
 #include <proto/cli.h>
-#include <proto/dns.h>
 #include <proto/stats.h>
 #include <haproxy/fd.h>
 #include <haproxy/freq_ctr.h>
index 151dbf037dd22e0069e6bea5b021f6bca296bc6a..b2c71d6ea26d301599f56f31a5b76ba4c4df3262 100644 (file)
@@ -18,6 +18,7 @@
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/dict.h>
+#include <haproxy/dns.h>
 #include <haproxy/dynbuf.h>
 #include <haproxy/hlua.h>
 #include <haproxy/istbuf.h>
@@ -40,7 +41,6 @@
 #include <proto/checks.h>
 #include <proto/cli.h>
 #include <proto/connection.h>
-#include <proto/dns.h>
 #include <proto/stats.h>
 #include <haproxy/fd.h>
 #include <proto/filters.h>
index ecdbe1f1634fff89017c02038b4a304285a77d63..2b02a24dfb0deb1467260d7511d1f9f9af4190e0 100644 (file)
 
 #include <haproxy/api.h>
 #include <haproxy/chunk.h>
+#include <haproxy/dns.h>
 #include <haproxy/hlua.h>
 #include <haproxy/namespace.h>
 #include <haproxy/tools.h>
 #include <types/global.h>
 #include <proto/applet.h>
-#include <proto/dns.h>
 #include <proto/listener.h>
 #include <haproxy/proto_udp.h>
 #include <proto/ssl_sock.h>