X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Finternet.h;h=25513e6667d8e0489ebc4557d848b97ed99cbe7e;hb=a382bddc798c2699c816d92a46718b44485f8889;hp=9b88bde973fe409d055f2b29e6f70bbfad7cd469;hpb=f508191f9d794e7762270d19a4211739470cfe0d;p=dcpomatic.git diff --git a/src/lib/internet.h b/src/lib/internet.h index 9b88bde97..25513e666 100644 --- a/src/lib/internet.h +++ b/src/lib/internet.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -19,7 +19,13 @@ */ #include -#include #include -boost::optional get_from_zip_url (std::string url, std::string file, bool pasv, boost::function load); + +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); +std::list ls_url (std::string url);