diff options
author | Gilles Vollant <info@winimage.com> | 2020-05-25 17:49:46 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-07-12 18:11:37 +0200 |
commit | e13357b14b7de013043d704dc9c80697e62616c6 (patch) | |
tree | 47146c8bc1645313653e15fdeb8e1f9f8f0e3bff /include/curl | |
parent | c4026a98979f6ed0f6cf9e544d6544ea3b23464c (diff) | |
download | curl-e13357b14b7de013043d704dc9c80697e62616c6.tar.gz |
content_encoding: add zstd decoding support
include zstd curl patch for Makefile.m32 from vszakats
and include Add CMake support for zstd from Peter Wu
Helped-by: Viktor Szakats
Helped-by: Peter Wu
Closes #5453
Diffstat (limited to 'include/curl')
-rw-r--r-- | include/curl/curl.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index e3531f5df..9104828c3 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -2748,6 +2748,7 @@ typedef enum { CURLVERSION_FIFTH, CURLVERSION_SIXTH, CURLVERSION_SEVENTH, + CURLVERSION_EIGHTH, CURLVERSION_LAST /* never actually use this */ } CURLversion; @@ -2756,7 +2757,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_SEVENTH +#define CURLVERSION_NOW CURLVERSION_EIGHTH struct curl_version_info_data { CURLversion age; /* age of the returned struct */ @@ -2802,6 +2803,11 @@ struct curl_version_info_data { const char *capath; /* the built-in default CURLOPT_CAPATH, might be NULL */ + /* These fields were added in CURLVERSION_EIGHTH */ + unsigned int zstd_ver_num; /* Numeric Zstd version + (MAJOR << 24) | (MINOR << 12) | PATCH */ + const char *zstd_version; /* human readable string. */ + }; typedef struct curl_version_info_data curl_version_info_data; @@ -2836,7 +2842,7 @@ typedef struct curl_version_info_data curl_version_info_data; #define CURL_VERSION_BROTLI (1<<23) /* Brotli features are present. */ #define CURL_VERSION_ALTSVC (1<<24) /* Alt-Svc handling built-in */ #define CURL_VERSION_HTTP3 (1<<25) /* HTTP3 support built-in */ - +#define CURL_VERSION_ZSTD (1<<26) /* zstd features are present */ /* * NAME curl_version_info() * |