summaryrefslogtreecommitdiff
path: root/lib/http2.h
diff options
context:
space:
mode:
authorAnders Bakken <agbakken@gmail.com>2016-11-14 15:32:00 -0800
committerDaniel Stenberg <daniel@haxx.se>2016-11-28 15:06:17 +0100
commit421f740164cf53ef9dfb6bc96d0b6a8321b32fd5 (patch)
tree48163d29ba399896d614e06301cf1e559bf9df6b /lib/http2.h
parenta387d881ecf1cfe8def1460fdf2faa3fdef66302 (diff)
downloadcurl-421f740164cf53ef9dfb6bc96d0b6a8321b32fd5.tar.gz
http2: Fix crashes when parent stream gets aborted
Closes #1125
Diffstat (limited to 'lib/http2.h')
-rw-r--r--lib/http2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/http2.h b/lib/http2.h
index 891753590..f405b3aeb 100644
--- a/lib/http2.h
+++ b/lib/http2.h
@@ -53,6 +53,11 @@ void Curl_http2_setup_conn(struct connectdata *conn);
void Curl_http2_setup_req(struct Curl_easy *data);
void Curl_http2_done(struct connectdata *conn, bool premature);
CURLcode Curl_http2_done_sending(struct connectdata *conn);
+void Curl_http2_add_child(struct Curl_easy *parent, struct Curl_easy *child,
+ bool exclusive);
+void Curl_http2_remove_child(struct Curl_easy *parent,
+ struct Curl_easy *child);
+void Curl_http2_cleanup_dependencies(struct Curl_easy *data);
#else /* USE_NGHTTP2 */
#define Curl_http2_init(x) CURLE_UNSUPPORTED_PROTOCOL
#define Curl_http2_send_request(x) CURLE_UNSUPPORTED_PROTOCOL
@@ -65,6 +70,9 @@ CURLcode Curl_http2_done_sending(struct connectdata *conn);
#define Curl_http2_init_userset(x)
#define Curl_http2_done(x,y)
#define Curl_http2_done_sending(x)
+#define Curl_http2_add_child(x, y, z)
+#define Curl_http2_remove_child(x, y)
+#define Curl_http2_cleanup_dependencies(x)
#endif
#endif /* HEADER_CURL_HTTP2_H */