lib: add curl_multi_waitfds

New function call, similar to curl_multi_fdset()

Closes #13135
This commit is contained in:
Dmitry Karpov 2024-03-14 21:41:44 -07:00 committed by Daniel Stenberg
parent e469ac4494
commit 02beac6bb6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
12 changed files with 553 additions and 2 deletions

View file

@ -464,6 +464,20 @@ typedef int (*curl_push_callback)(CURL *parent,
struct curl_pushheaders *headers,
void *userp);
/*
* Name: curl_multi_waitfds()
*
* Desc: Ask curl for fds for polling. The app can use these to poll on.
* We want curl_multi_perform() called as soon as one of them are
* ready. Passing zero size allows to get just a number of fds.
*
* Returns: CURLMcode type, general multi error code.
*/
CURL_EXTERN CURLMcode curl_multi_waitfds(CURLM *multi,
struct curl_waitfd *ufds,
unsigned int size,
unsigned int *fd_count);
#ifdef __cplusplus
} /* end of extern "C" */
#endif