aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-06-19 16:59:27 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-06-19 23:07:31 -0700
commit3e76baa163880f59fc344dcff58fd48e526b4a39 (patch)
tree682bfa6297b01df0351151509b96386d817976fa /toolsrc/include
parent84d65840ab5a36dc095826496a8213ac2404a216 (diff)
downloadvcpkg-3e76baa163880f59fc344dcff58fd48e526b4a39.tar.gz
vcpkg-3e76baa163880f59fc344dcff58fd48e526b4a39.zip
Introduce downloads.h/cpp
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/downloads.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/base/downloads.h b/toolsrc/include/vcpkg/base/downloads.h
new file mode 100644
index 000000000..f30e865a6
--- /dev/null
+++ b/toolsrc/include/vcpkg/base/downloads.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <vcpkg/base/files.h>
+
+namespace vcpkg::Downloads
+{
+ void verify_downloaded_file_hash(const Files::Filesystem& fs,
+ const std::string& url,
+ const fs::path& path,
+ const std::string& sha512);
+
+ void download_file(vcpkg::Files::Filesystem& fs,
+ const std::string& url,
+ const fs::path& download_path,
+ const std::string& sha512);
+}