diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-07-07 02:55:03 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-07-09 07:06:29 -0700 |
| commit | d977ac231e995250c169ac1778b7de34f7f57ead (patch) | |
| tree | 19ca101230a287329c5a42a1f88b0803249bdcc1 /toolsrc/include | |
| parent | 802f51a142283a117bf5bfa3f456493d8a20017d (diff) | |
| download | vcpkg-d977ac231e995250c169ac1778b7de34f7f57ead.tar.gz vcpkg-d977ac231e995250c169ac1778b7de34f7f57ead.zip | |
[vcpkg] Remove vcpkg::Archives from vcpkg::base. Add vcpkg::Hash.
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/archives.h (renamed from toolsrc/include/vcpkg/base/archives.h) | 18 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/downloads.h | 32 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/hash.h | 11 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/commands.h | 3 |
4 files changed, 36 insertions, 28 deletions
diff --git a/toolsrc/include/vcpkg/base/archives.h b/toolsrc/include/vcpkg/archives.h index cfb9f84c0..2298f9e1e 100644 --- a/toolsrc/include/vcpkg/base/archives.h +++ b/toolsrc/include/vcpkg/archives.h @@ -1,9 +1,9 @@ -#pragma once
-
-#include <vcpkg/base/files.h>
-#include <vcpkg/vcpkgpaths.h>
-
-namespace vcpkg::Archives
-{
- void extract_archive(const VcpkgPaths& paths, const fs::path& archive, const fs::path& to_path);
-}
+#pragma once + +#include <vcpkg/base/files.h> +#include <vcpkg/vcpkgpaths.h> + +namespace vcpkg::Archives +{ + void extract_archive(const VcpkgPaths& paths, const fs::path& archive, const fs::path& to_path); +} diff --git a/toolsrc/include/vcpkg/base/downloads.h b/toolsrc/include/vcpkg/base/downloads.h index f30e865a6..61c792488 100644 --- a/toolsrc/include/vcpkg/base/downloads.h +++ b/toolsrc/include/vcpkg/base/downloads.h @@ -1,16 +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);
-}
+#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(Files::Filesystem& fs, + const std::string& url, + const fs::path& download_path, + const std::string& sha512); +} diff --git a/toolsrc/include/vcpkg/base/hash.h b/toolsrc/include/vcpkg/base/hash.h new file mode 100644 index 000000000..9e6f118c0 --- /dev/null +++ b/toolsrc/include/vcpkg/base/hash.h @@ -0,0 +1,11 @@ +#pragma once + +#include <vcpkg/base/files.h> + +#include <string> + +namespace vcpkg::Hash +{ + std::string get_string_hash(const std::string& s, const std::string& hash_type); + std::string get_file_hash(const Files::Filesystem& fs, const fs::path& path, const std::string& hash_type); +} diff --git a/toolsrc/include/vcpkg/commands.h b/toolsrc/include/vcpkg/commands.h index 78b4dda50..57bd83db9 100644 --- a/toolsrc/include/vcpkg/commands.h +++ b/toolsrc/include/vcpkg/commands.h @@ -131,9 +131,6 @@ namespace vcpkg::Commands namespace Hash { - std::string get_string_hash(const std::string& s, const std::string& hash_type); - std::string get_file_hash(const Files::Filesystem& fs, const fs::path& path, const std::string& hash_type); - void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); } |
