Skip to content
Snippets Groups Projects
Commit 70d7a9e6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Introducing the SECOND version of the version_info struct. This should

be backwards compatible with older libcurls just fine.
parent 462d1c52
No related branches found
No related tags found
No related merge requests found
...@@ -1175,6 +1175,7 @@ CURLSHcode curl_share_cleanup(CURLSH *); ...@@ -1175,6 +1175,7 @@ CURLSHcode curl_share_cleanup(CURLSH *);
typedef enum { typedef enum {
CURLVERSION_FIRST, CURLVERSION_FIRST,
CURLVERSION_SECOND,
CURLVERSION_LAST /* never actually use this */ CURLVERSION_LAST /* never actually use this */
} CURLversion; } CURLversion;
...@@ -1183,7 +1184,7 @@ typedef enum { ...@@ -1183,7 +1184,7 @@ typedef enum {
meant to be a built-in version number for what kind of struct the caller 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 expects. If the struct ever changes, we redfine the NOW to another enum
from above. */ from above. */
#define CURLVERSION_NOW CURLVERSION_FIRST #define CURLVERSION_NOW CURLVERSION_SECOND
typedef struct { typedef struct {
CURLversion age; /* age of the returned struct */ CURLversion age; /* age of the returned struct */
...@@ -1196,6 +1197,10 @@ typedef struct { ...@@ -1196,6 +1197,10 @@ typedef struct {
const char *libz_version; /* human readable string */ const char *libz_version; /* human readable string */
/* protocols is terminated by an entry with a NULL protoname */ /* protocols is terminated by an entry with a NULL protoname */
const char **protocols; const char **protocols;
/* The fields below this were added in CURLVERSION_SECOND */
const char *ares;
int ares_num;
} curl_version_info_data; } curl_version_info_data;
#define CURL_VERSION_IPV6 (1<<0) #define CURL_VERSION_IPV6 (1<<0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment