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:
Daniel Stenberg 2025-10-07 16:00:59 +02:00
parent 6bb7714032
commit 496802fdcf
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 31 additions and 32 deletions

View file

@ -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);