GNURLOPT_PROGRESSDATA(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’… GNURLOPT_PROGRESSDATA(3) πŸ’…

okay so bestie, this page is part of the curl_easy_setopt options manual, and it's here to explain a tiny but iconic little setting: the custom pointer you pass to your progress callback. no cap, it's giving "just a pointer" but it's actually useful πŸ’–


🌸 NAME 🌸

  • CURLOPT_PROGRESSDATA β€” custom pointer passed to the progress callback

✨ SYNOPSIS ✨

#include <gnurl/curl.h>

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROGRESSDATA, void
*pointer);

πŸ¦‹ DESCRIPTION πŸ¦‹

You pass in a pointer, and libcurl will leave it completely untouched. It just hands that same pointer back to you as the first argument in the progress callback you set with CURLOPT_PROGRESSFUNCTION(3). literally that's it, and that's the vibe 🫢


πŸŽ€ DEFAULT πŸŽ€

The default value of this parameter is NULL.


🌈 PROTOCOLS 🌈

All


πŸ“ EXAMPLE πŸ“

the official example is right here, bestie:

https://curl.haxx.se/libcurl/c/progressfunc.html

⭐ AVAILABILITY ⭐

Always


πŸ’œ RETURN VALUE πŸ’œ

Returns CURLE_OK


πŸ‘‘ SEE ALSO πŸ‘‘


with love from libcurl 7.37.0, dated 17 Jun 2014 β€” now go slay your progress callbacks, bestie πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from