--- parser3/src/lib/curl/curl.h 2017/11/26 21:24:07 1.5 +++ parser3/src/lib/curl/curl.h 2026/07/19 19:14:55 1.7 @@ -20,7 +20,7 @@ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * - * $Id: curl.h,v 1.5 2017/11/26 21:24:07 moko Exp $ + * $Id: curl.h,v 1.7 2026/07/19 19:14:55 moko Exp $ ***************************************************************************/ /* @@ -34,6 +34,12 @@ typedef struct CURL CURL; +/* linked-list structure for the CURLOPT_QUOTE option (and other) */ +struct curl_slist { + char *data; + struct curl_slist *next; +}; + typedef enum { CURLE_OK = 0, CURLE_UNSUPPORTED_PROTOCOL, /* 1 */ @@ -145,6 +151,9 @@ typedef enum { CURL_LAST /* never use! */ } CURLcode; +/* the minimum CURLOPT_ERRORBUFFER size, error messages are truncated to fit */ +#define CURL_ERROR_SIZE 256 + /* long may be 32 or 64 bits, but we should never depend on anything else but 32 */ @@ -791,6 +800,10 @@ typedef enum { /* set the SSH host key callback custom pointer */ CINIT(SSH_KEYDATA, OBJECTPOINT, 185), + /* linked-list of host:port:address entries to populate the DNS cache with, + bypassing the resolver (added in 7.21.3) */ + CINIT(RESOLVE, OBJECTPOINT, 203), + CURLOPT_LASTENTRY /* the last unused */ } CURLoption;