]> granicus.if.org Git - curl/commitdiff
curl.h: add CURL_HTTP_VERSION_2
authorDaniel Stenberg <daniel@haxx.se>
Fri, 5 Jun 2015 06:26:47 +0000 (08:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 5 Jun 2015 06:26:47 +0000 (08:26 +0200)
The protocol is named "HTTP/2" after all. It is an alias for the
existing CURL_HTTP_VERSION_2_0 enum.

docs/libcurl/symbols-in-versions
include/curl/curl.h

index 1a9dc3697beea9f408b8358c22430c084db09973..8299a5179c6678fb7964f48c281695f2667554f4 100644 (file)
@@ -671,6 +671,7 @@ CURL_GLOBAL_WIN32               7.8.1
 CURL_HTTP_VERSION_1_0           7.9.1
 CURL_HTTP_VERSION_1_1           7.9.1
 CURL_HTTP_VERSION_2_0           7.33.0
+CURL_HTTP_VERSION_2             7.43.0
 CURL_HTTP_VERSION_NONE          7.9.1
 CURL_IPRESOLVE_V4               7.10.8
 CURL_IPRESOLVE_V6               7.10.8
index 727f19a4f8973bbd28cf6fa5191480b152514e76..eab2f6e99a541cd4148949f540f7ee2728c6c2ae 100644 (file)
@@ -1695,6 +1695,11 @@ enum {
   CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
 };
 
+/* Convenience definition simple because the name of the version is HTTP/2 and
+   not 2.0. The 2_0 version of the enum name was set while the version was
+   still planned to be 2.0 and we stick to it for compatibility. */
+#define CURL_HTTP_VERSION_2 CURL_HTTP_VERSION_2_0
+
 /*
  * Public API enums for RTSP requests
  */