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

@ -173,13 +173,13 @@ static void mstate(struct Curl_easy *data, CURLMstate state
data->mstate = state;
switch(state) {
case MSTATE_DONE:
CURLM_NTFY(data, CURLM_NOTIFY_EASY_DONE);
CURLM_NTFY(data, CURLMNOTIFY_EASY_DONE);
break;
case MSTATE_COMPLETED:
/* we sometimes directly jump to COMPLETED, trigger also a notification
* in that case. */
if(oldstate < MSTATE_DONE)
CURLM_NTFY(data, CURLM_NOTIFY_EASY_DONE);
CURLM_NTFY(data, CURLMNOTIFY_EASY_DONE);
/* changing to COMPLETED means it is in process and needs to go */
DEBUGASSERT(Curl_uint_bset_contains(&data->multi->process, data->mid));
Curl_uint_bset_remove(&data->multi->process, data->mid);
@ -226,7 +226,7 @@ static void ph_freeentry(void *p)
static void multi_addmsg(struct Curl_multi *multi, struct Curl_message *msg)
{
if(!Curl_llist_count(&multi->msglist))
CURLM_NTFY(multi->admin, CURLM_NOTIFY_INFO_READ);
CURLM_NTFY(multi->admin, CURLMNOTIFY_INFO_READ);
Curl_llist_append(&multi->msglist, msg, &msg->list);
}