Use a typedef for a note-taking functor.
[libdcp.git] / src / dcp.cc
index ea55454a3ac282ac7160bff4cb3683190485a42f..dd360edd5f22f21d5095fa3cf30b88cea753368f 100644 (file)
@@ -110,6 +110,9 @@ DCP::read (bool keep_going, ReadErrors* errors)
        }
 
        /* Read all the assets from the asset map */
+       /* XXX: I think we should be looking at the PKL here to decide type, not
+          the extension of the file.
+       */
        for (map<string, boost::filesystem::path>::const_iterator i = paths.begin(); i != paths.end(); ++i) {
                boost::filesystem::path path = _directory / i->second;
 
@@ -170,7 +173,7 @@ DCP::read (bool keep_going, ReadErrors* errors)
 }
 
 bool
-DCP::equals (DCP const & other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
+DCP::equals (DCP const & other, EqualityOptions opt, NoteHandler note) const
 {
        list<shared_ptr<CPL> > a = cpls ();
        list<shared_ptr<CPL> > b = other.cpls ();