#define LIBDCP_VERIFY_H
#include <boost/filesystem.hpp>
+#include <boost/function.hpp>
+#include <boost/optional.hpp>
#include <string>
#include <list>
#include <vector>
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)
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
+ );
}