projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extract simple_digest().
[dcpomatic.git]
/
src
/
lib
/
util.cc
diff --git
a/src/lib/util.cc
b/src/lib/util.cc
index 7106cc782fb077e48f49a619651b008e7be502ff..6e2a1ad642c9d2b7a945abf32314879438b233c2 100644
(file)
--- a/
src/lib/util.cc
+++ b/
src/lib/util.cc
@@
-530,6
+530,13
@@
digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t size)
}
}
+string
+simple_digest (vector<boost::filesystem::path> paths)
+{
+ return digest_head_tail(paths, 1000000) + raw_convert<string>(boost::filesystem::file_size(paths.front()));
+}
+
+
/** Trip an assert if the caller is not in the UI thread */
void
ensure_ui_thread ()
/** Trip an assert if the caller is not in the UI thread */
void
ensure_ui_thread ()