aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-06-01 15:52:46 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-06-24 23:44:42 +0200
commitf65ab8864e2f9d580daf0ca48c972d6124a2ff3d (patch)
treebaa0c14a5de151b3c48df583be255b57986fc41b /include
parentfeea9263e9066768323a759ee178c144fccf5998 (diff)
http2: fixed the header accessor functions for the push callback
Diffstat (limited to 'include')
-rw-r--r--include/curl/multi.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/curl/multi.h b/include/curl/multi.h
index 5b462adc8..b2670e254 100644
--- a/include/curl/multi.h
+++ b/include/curl/multi.h
@@ -294,18 +294,13 @@ typedef int (*curl_multi_timer_callback)(CURLM *multi, /* multi handle */
#define CURL_PUSH_OK 0
#define CURL_PUSH_DENY 1
-struct curl_headerpair {
- unsigned char *name; /* zero terminated name */
- size_t namelen; /* length of 'name' */
- unsigned char *value; /* zero terminated name */
- size_t valuelen; /* length of 'value' */
-};
-
struct curl_pushheaders; /* forward declaration only */
-struct curl_headerpair *curl_pushheader_bynum(struct curl_pushheaders *h,
- int num);
-struct curl_headerpair *curl_pushheader_byname(struct curl_pushheaders *h,
- char *name);
+
+CURL_EXTERN char *curl_pushheader_bynum(struct curl_pushheaders *h,
+ size_t num);
+
+CURL_EXTERN char *curl_pushheader_byname(struct curl_pushheaders *h,
+ char *name);
typedef int (*curl_push_callback)(CURL *parent,
CURL *easy,