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