aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-04-05 16:41:52 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-04-06 17:24:46 -0700
commite71230855443a0b87c38e011531cfc6b9d6ffce5 (patch)
tree7c018bd6113b458a7ebdf0da9c9229d3b3ecf245 /toolsrc/include
parent870fa61e0132028f43c292b7fd7a7d7c6525a8d7 (diff)
downloadvcpkg-e71230855443a0b87c38e011531cfc6b9d6ffce5.tar.gz
vcpkg-e71230855443a0b87c38e011531cfc6b9d6ffce5.zip
[vcpkg hash] Add string hashing (as opposed to file hashing)
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/commands.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/commands.h b/toolsrc/include/vcpkg/commands.h
index 65e7fdd14..d8d2abfa9 100644
--- a/toolsrc/include/vcpkg/commands.h
+++ b/toolsrc/include/vcpkg/commands.h
@@ -131,8 +131,10 @@ 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 fs::path& path, const std::string& hash_type);
+
void perform_and_exit(const VcpkgCmdArguments& args);
- std::string get_file_hash(fs::path const& path, std::string const& hash_type);
}
namespace Fetch