mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
multi: use CURLMNOTIFY_ as notification id prefix
Since CURLM_ is already used as prefix for multi error codes, it makes
it easier to detect and understand the difference between identifiers -
and allows for scripts on the website and elsewhere to separate them
properly.
Follow-up to 53be8166b2
Closes #18912
This commit is contained in:
parent
6bb7714032
commit
496802fdcf
9 changed files with 31 additions and 32 deletions
|
|
@ -1736,7 +1736,7 @@ static void mnotify(CURLM *multi, unsigned int notification,
|
|||
(void)easy;
|
||||
|
||||
switch(notification) {
|
||||
case CURLM_NOTIFY_INFO_READ:
|
||||
case CURLMNOTIFY_INFO_READ:
|
||||
result = check_finished(s);
|
||||
/* remember first failure */
|
||||
if(result && !s->result)
|
||||
|
|
@ -1766,7 +1766,7 @@ static CURLcode parallel_transfers(CURLSH *share)
|
|||
|
||||
(void)curl_multi_setopt(s->multi, CURLMOPT_NOTIFYFUNCTION, mnotify);
|
||||
(void)curl_multi_setopt(s->multi, CURLMOPT_NOTIFYDATA, s);
|
||||
(void)curl_multi_notify_enable(s->multi, CURLM_NOTIFY_INFO_READ);
|
||||
(void)curl_multi_notify_enable(s->multi, CURLMNOTIFY_INFO_READ);
|
||||
|
||||
result = add_parallel_transfers(s->multi, s->share,
|
||||
&s->more_transfers, &s->added_transfers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue