X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Finternet.h;fp=src%2Flib%2Finternet.h;h=041bb1bb13f4e48d1bc97b11ee7fabc3c2620cc6;hp=f3cd2c6b4f908b63f6fba2c4331e643f8fb16c4c;hb=0ba82c1ba8d9e2e69240007a797efe24fc57fd9d;hpb=b7672a6d2d999489a188c539de7d01f5042fdee5 diff --git a/src/lib/internet.h b/src/lib/internet.h index f3cd2c6b4..041bb1bb1 100644 --- a/src/lib/internet.h +++ b/src/lib/internet.h @@ -27,6 +27,20 @@ class ScopedTemporary; boost::optional get_from_url (std::string url, bool pasv, bool skip_pasv_ip, ScopedTemporary& temp); -boost::optional get_from_url (std::string url, bool pasv, bool skip_pasv_ip, std::function (boost::filesystem::path)> load); -boost::optional get_from_zip_url (std::string url, std::string file, bool pasv, bool skip_pasv_ip, std::function (boost::filesystem::path)> load); + +boost::optional get_from_url ( + std::string url, + bool pasv, + bool skip_pasv_ip, + std::function (boost::filesystem::path, std::string)> load + ); + +boost::optional get_from_zip_url ( + std::string url, + std::string file, + bool pasv, + bool skip_pasv_ip, + std::function (boost::filesystem::path, std::string)> load + ); + std::list ls_url (std::string url);