From 7a0957d7136d51b9c4680468253543812186facc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 19 Aug 2019 22:00:06 +0200 Subject: [PATCH] lib/curl/Global: document ToRequest() --- src/lib/curl/Global.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/curl/Global.cxx b/src/lib/curl/Global.cxx index 3111417e8..4e6a668f5 100644 --- a/src/lib/curl/Global.cxx +++ b/src/lib/curl/Global.cxx @@ -176,6 +176,10 @@ CurlGlobal::Remove(CurlRequest &r) noexcept InvalidateSockets(); } +/** + * Find a request by its CURL "easy" handle. + */ +gcc_pure static CurlRequest * ToRequest(CURL *easy) noexcept {