Make terminate_threads() less likely to leave _threads containing invalid pointers.
[dcpomatic.git] / src / lib / screen_kdm.h
index 227526449a3b18abe8ec4a5b6a7a715535677e40..9ab73b8515ac69a3c3d23b54c5250bb9da2b6708 100644 (file)
@@ -21,8 +21,8 @@
 #ifndef DCPOMATIC_SCREEN_KDM_H
 #define DCPOMATIC_SCREEN_KDM_H
 
-#include "kdm_filename_format.h"
 #include <dcp/encrypted_kdm.h>
+#include <dcp/name_format.h>
 #include <boost/shared_ptr.hpp>
 
 class Screen;
@@ -36,9 +36,10 @@ public:
                , kdm (k)
        {}
 
-       static void write_files (
+       static int write_files (
                std::list<ScreenKDM> screen_kdms, boost::filesystem::path directory,
-               KDMFilenameFormat name_format, dcp::NameFormat::Map name_values
+               dcp::NameFormat name_format, dcp::NameFormat::Map name_values,
+               boost::function<bool (boost::filesystem::path)> confirm_overwrite
                );
 
        boost::shared_ptr<Screen> screen;