Remove version string in test mode.
[libdcp.git] / src / util.h
index fcb6d739eb8eb06d8e6927d9024ad3aaf97efc0b..b6c945a5a812933f6598c2811985b83e965f81b7 100644 (file)
 
 */
 
+/** @file  src/util.h
+ *  @brief Utility methods.
+ */
+
 #include <string>
+#include <sigc++/sigc++.h>
 
 namespace libdcp {
-       
+
+/** Create a UUID.
+ *  @return UUID.
+ */
 extern std::string make_uuid ();
-extern std::string make_digest (std::string);
-extern bool libdcp_test;
+
+/** Create a digest for a file.
+ *  @param filename File name.
+ *  @param progress If non-0, a signal which will be emitted periodically to update
+ *  progress; the parameter will start at 0.5 and proceed to 1.
+ *  @return Digest.
+ */
+extern std::string make_digest (std::string filename, sigc::signal1<void, float>* progress);
 
 }