diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-01 11:45:52 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-24 23:44:42 +0200 |
commit | ea7134ac874a66107e54ff93657ac565cf2ec4aa (patch) | |
tree | 72f0b2d2b5aa7158197449ef46c1cb122e010476 /lib/multi.c | |
parent | 70191958b5db1814e13ef90856a9f70a5186e733 (diff) |
http2: initial implementation of the push callback
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c index a8d3e38b5..33c03f299 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -62,8 +62,6 @@ #define GOOD_MULTI_HANDLE(x) \ ((x) && (((struct Curl_multi *)(x))->type == CURL_MULTI_HANDLE)) -#define GOOD_EASY_HANDLE(x) \ - ((x) && (((struct SessionHandle *)(x))->magic == CURLEASY_MAGIC_NUMBER)) static void singlesocket(struct Curl_multi *multi, struct SessionHandle *data); @@ -2341,6 +2339,12 @@ CURLMcode curl_multi_setopt(CURLM *multi_handle, case CURLMOPT_SOCKETDATA: multi->socket_userp = va_arg(param, void *); break; + case CURLMOPT_PUSHFUNCTION: + multi->push_cb = va_arg(param, curl_push_callback); + break; + case CURLMOPT_PUSHDATA: + multi->push_userp = va_arg(param, void *); + break; case CURLMOPT_PIPELINING: multi->pipelining = va_arg(param, long); break; |