CURL_MULTI_NOTIFY_DISABLE(3)
π curl_multi_notify_disable(3) β like, the manual page bestie π
okay so this is a page from the Library Functions Manual, and it's literally all about curl_multi_notify_disable β the function that turns a notification type OFF in your multi handle. yes queen, we're unsubscribing β¨
β¨ NAME β¨
curl_multi_notify_disable β disable a notification type π«π
πΈ SYNOPSIS πΈ
#include <curl/curl.h>
CURLMcode curl_multi_notify_disable(CURLM *multi_handle,
unsigned int notification);
π¦ DESCRIPTION π¦
So basically πββοΈ this disables collecting the given notification type in the multi handle. meaning: a callback function you installed via CURLMOPT_NOTIFYFUNCTION(3) is no longer called when this notification happens. she's muted, periodt. π
And listen β notifications only get collected and dispatched to the callback when both things are true: a notification callback is installed and that notification is enabled. no callback or no enable = nothing to collect, iykyk π
The good news? Several notification types can be enabled at the same time. it's giving multitasking main character energy π and disabling a notification that's already disabled is not an error β no drama, no cap. π«Ά
Feeling regret? you can always enable a notification again via curl_multi_notify_enable(3). we love a comeback arc. π
π PROTOCOLS π
This functionality affects all supported protocols β every single one, bestie. π₯
π EXAMPLE π
int main(void)
{
int rc;
CURLM *multi = curl_multi_init();
rc = curl_multi_notify_disable(multi, CURLMNOTIFY_INFO_READ);
}
look at her go π so simple, so iconic.
β AVAILABILITY β
Added in curl 8.17.0 β so if you're on something older, she's not there yet, check your version bestie π
π RETURN VALUE π
This function returns a CURLMcode indicating success or error. classic. π
CURLM_OK(0) means everything was OK π- non-zero means an error occurred β go check
libcurl-errors(3)π
β οΈ heads up: the return code is for the whole multi stack. Problems still might have occurred on individual transfers even when one of these functions returns OK. so don't get too comfortable, ngl π
π§ SEE ALSO π§
and that's the whole page, bestie π this was libcurl, dated 2026-10-25 β go forth and disable your notifications responsibly, mwah π«Άβ¨π
π¦ where this page comes from
- alpine 3.23: curl-doc 8.23.0-r0 Β· curl
- alpine 3.24: curl-doc 8.23.0-r0 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms