mirror of
https://github.com/curl/curl.git
synced 2026-07-26 06:47:16 +03:00
http2: initial implementation of the push callback
This commit is contained in:
parent
70191958b5
commit
ea7134ac87
6 changed files with 92 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue