dns: flatten the include tree

Closes #20106
This commit is contained in:
Viktor Szakats 2025-12-28 16:48:32 +01:00
parent b17ef873ae
commit 57ff2d6c91
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
24 changed files with 34 additions and 17 deletions

View File

@ -26,6 +26,7 @@
#ifdef __AMIGA__
#include "hostip.h"
#include "curl_addrinfo.h"
#include "amigaos.h"
#ifdef HAVE_PROTO_BSDSOCKET_H

View File

@ -47,6 +47,7 @@
#include "urldata.h"
#include "cfilters.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "hostip.h"
#include "url.h"

View File

@ -43,7 +43,6 @@
#endif
#include "urldata.h"
#include "asyn.h"
#include "hostip.h"
#include "multiif.h"
#include "select.h"

View File

@ -56,8 +56,10 @@
#include "urldata.h"
#include "cfilters.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "hostip.h"
#include "httpsrr.h"
#include "url.h"
#include "multiif.h"
#include "curl_threads.h"

View File

@ -25,15 +25,17 @@
***************************************************************************/
#include "curl_setup.h"
#if defined(USE_HTTPSRR) && defined(USE_ARES)
#include "httpsrr.h"
#endif
struct Curl_easy;
struct Curl_dns_entry;
#ifdef CURLRES_ASYNCH
#include "curl_addrinfo.h"
#include "httpsrr.h"
struct addrinfo;
struct hostent;
struct connectdata;
struct easy_pollset;

View File

@ -30,6 +30,7 @@
#include "cfilters.h"
#include "connect.h"
#include "hostip.h"
#include "httpsrr.h"
#include "multiif.h"
#include "cf-https-connect.h"
#include "http2.h"

View File

@ -50,6 +50,7 @@
#include "connect.h"
#include "cfilters.h"
#include "cf-ip-happy.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "multiif.h"
#include "progress.h"

View File

@ -61,6 +61,7 @@
#include "cfilters.h"
#include "cf-socket.h"
#include "connect.h"
#include "curl_addrinfo.h"
#include "select.h"
#include "multiif.h"
#include "curlx/inet_pton.h"

View File

@ -28,8 +28,8 @@
#include "urldata.h"
#include "curl_addrinfo.h"
#include "doh.h"
#include "curl_trc.h"
#include "httpsrr.h"
#include "multiif.h"
#include "url.h"
#include "connect.h"

View File

@ -25,10 +25,8 @@
***************************************************************************/
#include "urldata.h"
#include "curl_addrinfo.h"
#ifdef USE_HTTPSRR
# include <stdint.h>
# include "httpsrr.h"
#endif
#ifndef CURL_DISABLE_DOH

View File

@ -41,6 +41,7 @@
#include "urldata.h"
#include "sendf.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "if2ip.h"
#include "hostip.h"

View File

@ -44,10 +44,12 @@
#include <signal.h>
#include "urldata.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "connect.h"
#include "hostip.h"
#include "hash.h"
#include "httpsrr.h"
#include "rand.h"
#include "curl_share.h"
#include "url.h"

View File

@ -26,10 +26,7 @@
#include "curl_setup.h"
#include "hash.h"
#include "curl_addrinfo.h"
#include "curlx/timeval.h" /* for curltime, timediff_t */
#include "asyn.h"
#include "httpsrr.h"
#ifdef USE_HTTPSRR
# include <stdint.h>
@ -50,6 +47,7 @@ struct hostent;
struct Curl_easy;
struct connectdata;
struct easy_pollset;
struct Curl_https_rrinfo;
enum alpnid {
ALPN_none = 0,

View File

@ -43,6 +43,7 @@
#endif
#include "urldata.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "hostip.h"
#include "url.h"

View File

@ -44,6 +44,7 @@
#include "urldata.h"
#include "cfilters.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "hostip.h"
#include "url.h"

View File

@ -34,6 +34,7 @@
#include "urldata.h"
#include "bufq.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "select.h"
#include "cfilters.h"

View File

@ -73,6 +73,7 @@
#include "vtls/vtls.h"
#include "hostip.h"
#include "transfer.h"
#include "curl_addrinfo.h"
#include "curl_trc.h"
#include "progress.h"
#include "cookie.h"

View File

@ -131,10 +131,6 @@ typedef uint32_t curl_prot_t;
input easier and better. */
#define CURL_MAX_INPUT_LENGTH 8000000
#include "cookie.h"
#include "psl.h"
#include "formdata.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
@ -144,6 +140,10 @@ typedef uint32_t curl_prot_t;
#include "curlx/timeval.h"
#include "asyn.h"
#include "cookie.h"
#include "psl.h"
#include "formdata.h"
#include "http_chunks.h" /* for the structs and enum stuff */
#include "hostip.h"
#include "hash.h"

View File

@ -43,6 +43,7 @@
#include "../urldata.h"
#include "../curl_trc.h"
#include "../httpsrr.h"
#include "../formdata.h" /* for the boundary function */
#include "../url.h" /* for the ssl config check function */
#include "../curlx/inet_pton.h"

View File

@ -33,6 +33,7 @@
#include "../curlx/strerr.h"
#include "../urldata.h"
#include "../curl_trc.h"
#include "../httpsrr.h"
#include "vtls.h"
#include "vtls_int.h"
#include "rustls.h"

View File

@ -53,6 +53,7 @@
#include "../urldata.h"
#include "../curl_trc.h"
#include "../httpsrr.h"
#include "vtls.h"
#include "vtls_int.h"
#include "vtls_scache.h"

View File

@ -33,6 +33,7 @@
#include <arpa/inet.h>
#endif
#include "curl_addrinfo.h"
#include "hash.h"
#include "hostip.h"

View File

@ -23,10 +23,11 @@
***************************************************************************/
#include "unitcheck.h"
#include "hostip.h"
#ifndef CURL_DISABLE_SHUFFLE_DNS
#include "urldata.h"
#include "curl_addrinfo.h"
CURLcode Curl_shuffle_addr(struct Curl_easy *data,
struct Curl_addrinfo **addr);

View File

@ -23,11 +23,12 @@
***************************************************************************/
#include "unitcheck.h"
#include "doh.h"
/* DoH + HTTPSRR are required */
#if !defined(CURL_DISABLE_DOH) && defined(USE_HTTPSRR)
#include "doh.h"
#include "httpsrr.h"
static CURLcode t1658_setup(void)
{
/* whatever you want done first */