Fix incorrect XML namespace in MXF header; I was using the prefix
[libdcp.git] / src / verify.h
index 63f47e289325c17e710f9f809388ace9852a3222..f5b21763eb4de1310e5ee066c517d4893a82d207 100644 (file)
@@ -35,6 +35,8 @@
 #define LIBDCP_VERIFY_H
 
 #include <boost/filesystem.hpp>
+#include <boost/function.hpp>
+#include <boost/optional.hpp>
 #include <string>
 #include <list>
 #include <vector>
@@ -44,10 +46,13 @@ namespace dcp {
 class VerificationNote
 {
 public:
+       /* I've been unable to make mingw happy with ERROR as a symbol, so
+          I'm using a VERIFY_ prefix here.
+       */
        enum Type {
-               ERROR,
-               WARNING,
-               NOTE
+               VERIFY_ERROR,
+               VERIFY_WARNING,
+               VERIFY_NOTE
        };
 
        VerificationNote (Type type, std::string note)
@@ -68,7 +73,11 @@ private:
        std::string _note;
 };
 
-std::list<VerificationNote> verify (std::vector<boost::filesystem::path> directories);
+std::list<VerificationNote> verify (
+       std::vector<boost::filesystem::path> directories,
+       boost::function<void (std::string, boost::optional<boost::filesystem::path>)> stage,
+       boost::function<void (float)> progress
+       );
 
 }