Revert "Update to 7.40.1"
[platform/upstream/curl.git] / lib / http2.h
index ee95ef6..5c0ce8e 100644 (file)
@@ -36,14 +36,14 @@ CURLcode Curl_http2_init(struct connectdata *conn);
 CURLcode Curl_http2_send_request(struct connectdata *conn);
 CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req,
                                     struct connectdata *conn);
-void Curl_http2_setup(struct connectdata *conn);
+CURLcode Curl_http2_setup(struct connectdata *conn);
 int Curl_http2_switched(struct connectdata *conn);
 #else /* USE_NGHTTP2 */
-#define Curl_http2_init(x)
-#define Curl_http2_send_request(x)
-#define Curl_http2_request_upgrade(x,y) CURLE_OK
-#define Curl_http2_switched(x)
-#define Curl_http2_setup(x) Curl_nop_stmt
+#define Curl_http2_init(x) CURLE_UNSUPPORTED_PROTOCOL
+#define Curl_http2_send_request(x) CURLE_UNSUPPORTED_PROTOCOL
+#define Curl_http2_request_upgrade(x,y) CURLE_UNSUPPORTED_PROTOCOL
+#define Curl_http2_setup(x) CURLE_UNSUPPORTED_PROTOCOL
+#define Curl_http2_switched(x) (-1)
 #endif
 
 #endif /* HEADER_CURL_HTTP2_H */