Add KDMWithMetadataPtr typedef
[dcpomatic.git] / src / lib / kdm_with_metadata.h
index 8d6d61daad3412cf4214ad98f43b9440122392e6..19af0356f80d39c8e584611deb70dcde8cfa6049 100644 (file)
@@ -46,15 +46,20 @@ public:
        virtual void kdm_as_xml (boost::filesystem::path out) const = 0;
        virtual std::string kdm_id () const = 0;
 
-       static int write_files (
-               std::list<boost::shared_ptr<KDMWithMetadata> > screen_kdms, boost::filesystem::path directory,
-               dcp::NameFormat name_format, dcp::NameFormat::Map name_values,
-               boost::function<bool (boost::filesystem::path)> confirm_overwrite
-               );
-
        boost::shared_ptr<dcpomatic::Screen> screen;
 };
 
+
+typedef boost::shared_ptr<KDMWithMetadata> KDMWithMetadataPtr;
+
+
+int write_files (
+       std::list<KDMWithMetadataPtr> screen_kdms, boost::filesystem::path directory,
+       dcp::NameFormat name_format, dcp::NameFormat::Map name_values,
+       boost::function<bool (boost::filesystem::path)> confirm_overwrite
+       );
+
+
 class DCPKDMWithMetadata : public KDMWithMetadata
 {
 public: