]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: add new information extraction method
authorStefan Eissing <stefan@eissing.org>
Wed, 23 Jul 2025 07:18:59 +0000 (09:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Aug 2025 21:48:57 +0000 (23:48 +0200)
commit1ad2009ad63478ace18977ec5314f597f45ad084
treefbfb40815e47391bb0e9af8b0df9919c6f8871ff
parentfadc4875670a0b0d484b710baa91b353957f4fe4
multi: add new information extraction method

Adds `curl_off_t curl_multi_get_offt(CURLM *multi_handle, CURLMinfo_offt
info)` to the multi interface with enums:

* CURLMINFO_XFERS_CURRENT: current number of transfers
* CURLMINFO_XFERS_RUNNING: number of running transfers
* CURLMINFO_XFERS_PENDING: number of pending transfers
* CURLMINFO_XFERS_DONE: number of finished transfers to read
* CURLMINFO_XFERS_ADDED: total number of transfers added, ever

Add documentation for functions and info enums.

Add use in the curl command line tool to replace two static
variables counting the same "from the outside".

refs #17870
Closes #17992
14 files changed:
.github/scripts/spellcheck.curl
docs/libcurl/Makefile.inc
docs/libcurl/curl_multi_get_offt.md [new file with mode: 0644]
docs/libcurl/symbols-in-versions
include/curl/multi.h
lib/libcurl.def
lib/multi.c
lib/multihandle.h
lib/uint-bset.c
scripts/singleuse.pl
src/tool_operate.c
src/tool_progress.c
src/tool_progress.h
tests/data/test1135