X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Finternet.h;h=041bb1bb13f4e48d1bc97b11ee7fabc3c2620cc6;hb=HEAD;hp=25513e6667d8e0489ebc4557d848b97ed99cbe7e;hpb=8963f0007af1a312017b9627c18b82ec2a577591;p=dcpomatic.git diff --git a/src/lib/internet.h b/src/lib/internet.h index 25513e666..041bb1bb1 100644 --- a/src/lib/internet.h +++ b/src/lib/internet.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2021 Carl Hetherington + Copyright (C) 2014-2022 Carl Hetherington This file is part of DCP-o-matic. @@ -18,14 +18,29 @@ */ -#include + #include +#include 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);