summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-31 02:38:50 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-15 15:26:35 +0200
commit7cb07bcec10bfdfed3e82a2dc138114dc6a5ac68 (patch)
treefcc7b8bca794aaa3df5b81f4ad22af272628ee9c /src/util.h
parent11a3284c65b94960ef1e2ad819ccc22e97aa9454 (diff)
Allow hash to pass data to some function.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 52cb135d..eea75bca 100644
--- a/src/util.h
+++ b/src/util.h
@@ -90,7 +90,11 @@ extern std::string make_uuid ();
* and a total number of bytes.
* @return Digest
*/
-extern std::string make_digest(boost::filesystem::path filename, boost::function<void (int64_t, int64_t)>);
+extern std::string make_digest(
+ boost::filesystem::path filename,
+ boost::function<void (int64_t, int64_t)> progress,
+ boost::function<void (int64_t, uint8_t const*, int)> check
+ );
extern std::string make_digest (ArrayData data);