From: Daniel Stenberg Date: Mon, 2 Feb 2004 16:24:18 +0000 (+0000) Subject: Introducing the SECOND version of the version_info struct. This should X-Git-Tag: cares-1_1_0~383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70d7a9e6a5cea1f51c5d8a71eec4fa08192fc0c2;p=curl Introducing the SECOND version of the version_info struct. This should be backwards compatible with older libcurls just fine. --- diff --git a/include/curl/curl.h b/include/curl/curl.h index 100e72872..279df2ec0 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -1175,6 +1175,7 @@ CURLSHcode curl_share_cleanup(CURLSH *); typedef enum { CURLVERSION_FIRST, + CURLVERSION_SECOND, CURLVERSION_LAST /* never actually use this */ } CURLversion; @@ -1183,7 +1184,7 @@ typedef enum { meant to be a built-in version number for what kind of struct the caller expects. If the struct ever changes, we redfine the NOW to another enum from above. */ -#define CURLVERSION_NOW CURLVERSION_FIRST +#define CURLVERSION_NOW CURLVERSION_SECOND typedef struct { CURLversion age; /* age of the returned struct */ @@ -1196,6 +1197,10 @@ typedef struct { const char *libz_version; /* human readable string */ /* protocols is terminated by an entry with a NULL protoname */ const char **protocols; + + /* The fields below this were added in CURLVERSION_SECOND */ + const char *ares; + int ares_num; } curl_version_info_data; #define CURL_VERSION_IPV6 (1<<0)