Use a typedef for a note-taking functor.
[libdcp.git] / src / types.h
index f685806ffc77252507252c48b2c76501c671af59..08613c79774fb8a01980c0ef74e390958b5aff0c 100644 (file)
@@ -25,6 +25,7 @@
 #define LIBDCP_TYPES_H
 
 #include <boost/shared_ptr.hpp>
+#include <boost/function.hpp>
 #include <string>
 
 namespace dcp
@@ -187,6 +188,9 @@ extern std::ostream & operator<< (std::ostream & s, Colour const & c);
 
 typedef std::pair<std::string, boost::shared_ptr<const parse::AssetMap> > PathAssetMap;
 
+typedef boost::function<void (NoteType, std::string)> NoteHandler;
+
+
 }
 
 #endif