summaryrefslogtreecommitdiff
path: root/src/asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-29 14:24:09 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-29 14:24:09 +0100
commite3f4b24468b39701030025f83f18d85c5c4e0844 (patch)
tree509e98315491593aab707e127ed26b65d59681be /src/asset.h
parentd697e7bedb1e42f5167c92fd9ab363f496d718f5 (diff)
Optional progress reporting when making MXF hashes.
Diffstat (limited to 'src/asset.h')
-rw-r--r--src/asset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/asset.h b/src/asset.h
index 44d088a3..c6ff7e83 100644
--- a/src/asset.h
+++ b/src/asset.h
@@ -73,6 +73,14 @@ public:
*/
void write_to_assetmap (xmlpp::Node *) const;
+ /** Compute the digest for this asset. Calling this is optional: if
+ * it is not called, the digest will be computed when required. However,
+ * calling this method allows the caller to see the progress of the
+ * computation, which can be long for large assets.
+ * @param Called with progress between 0 and 1.
+ */
+ void compute_digest (boost::function<void (float)> progress);
+
std::string uuid () const {
return _uuid;
}