aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-26 07:20:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-26 07:20:11 +0000
commit648e82f05d8bce097f9f81b78d9df40f647f6170 (patch)
tree3853fbb58d25240561337356c5a99e44ffd57a72 /lib/urldata.h
parent1dbe60b8b71c2308fab987f5b4c6c6e9a264dd66 (diff)
Major hostip.c cleanup and split into multiple files and easier #ifdef
usage.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 7642cb9a1..445788f8f 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -81,6 +81,10 @@
#include <zlib.h> /* for content-encoding */
#endif
+#ifdef USE_ARES
+#include <ares.h>
+#endif
+
#include <curl/curl.h>
#include "http_chunks.h" /* for the structs and enum stuff */
@@ -96,10 +100,6 @@
#endif
#endif
-#ifdef USE_ARES
-#include <ares.h>
-#endif
-
/* Download buffer size, keep it fairly big for speed reasons */
#define BUFSIZE CURL_MAX_WRITE_SIZE
@@ -381,7 +381,8 @@ struct Curl_transfer_keeper {
bool ignorebody; /* we read a response-body but we ignore it! */
};
-#if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME)
+#if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME) || \
+ defined(USE_THREADING_GETADDRINFO)
struct Curl_async {
char *hostname;
int port;
@@ -430,6 +431,9 @@ struct connectdata {
char *namebuffer; /* allocated buffer to store the hostname in */
char *hostname; /* hostname to use, as parsed from url. points to
somewhere within the namebuffer[] area */
+#ifdef USE_LIBIDN
+ char *ace_hostname; /* hostname possibly converted to ACE form */
+#endif
char *pathbuffer;/* allocated buffer to store the URL's path part in */
char *path; /* path to use, points to somewhere within the pathbuffer
area */
@@ -579,7 +583,8 @@ struct connectdata {
char syserr_buf [256]; /* buffer for Curl_strerror() */
-#if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME)
+#if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME) || \
+ defined(USE_THREADING_GETADDRINFO)
/* data used for the asynch name resolve callback */
struct Curl_async async;
#endif