diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2022-11-09 00:27:32 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-11-14 09:18:53 +0100 |
commit | e780aae77a10d95b1e2bfe80b6a4a9d67b772c50 (patch) | |
tree | 90fb50baca8626dec3d2d778f14f58ff6a70298f /include | |
parent | 00ea0aaf468a5bab96ea89eff172bd3c1f7e9fb2 (diff) | |
download | curl-e780aae77a10d95b1e2bfe80b6a4a9d67b772c50.tar.gz |
version: add a feature names array to curl_version_info_data
Field feature_names contains a null-terminated sorted array of feature
names. Bitmask field features is deprecated.
Documentation is updated. Test 1177 and tests/version-scan.pl updated to
match new documentation format and extended to check feature names too.
Closes #9583
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 6e569ab75..61ca2724d 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -2952,6 +2952,7 @@ typedef enum { CURLVERSION_EIGHTH, CURLVERSION_NINTH, CURLVERSION_TENTH, + CURLVERSION_ELEVENTH, CURLVERSION_LAST /* never actually use this */ } CURLversion; @@ -2960,7 +2961,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 redefine the NOW to another enum from above. */ -#define CURLVERSION_NOW CURLVERSION_TENTH +#define CURLVERSION_NOW CURLVERSION_ELEVENTH struct curl_version_info_data { CURLversion age; /* age of the returned struct */ @@ -3016,6 +3017,10 @@ struct curl_version_info_data { /* These fields were added in CURLVERSION_TENTH */ const char *gsasl_version; /* human readable string. */ + + /* These fields were added in CURLVERSION_ELEVENTH */ + /* feature_names is terminated by an entry with a NULL feature name */ + const char * const *feature_names; }; typedef struct curl_version_info_data curl_version_info_data; |