summaryrefslogtreecommitdiff
path: root/libs/libcurl/include/curl/multi.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/include/curl/multi.h')
-rw-r--r--libs/libcurl/include/curl/multi.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/libcurl/include/curl/multi.h b/libs/libcurl/include/curl/multi.h
index 9ea91ef7a1..9a808f1f99 100644
--- a/libs/libcurl/include/curl/multi.h
+++ b/libs/libcurl/include/curl/multi.h
@@ -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