summaryrefslogtreecommitdiff
path: root/src/lib/find_missing.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-25 02:05:54 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-25 02:07:56 +0100
commit838d036e10862618e16b1cbe802ecf2fdbf6ce6d (patch)
tree169474bcd7de18dce3ab63b644bc3b41c9b55b4b /src/lib/find_missing.h
parent4d1b1c5183251b3314d5a541e4cecc872e3702f7 (diff)
Extract and improve code to find missing files (#1940).
Diffstat (limited to 'src/lib/find_missing.h')
-rw-r--r--src/lib/find_missing.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/lib/find_missing.h b/src/lib/find_missing.h
new file mode 100644
index 000000000..6755b5dd1
--- /dev/null
+++ b/src/lib/find_missing.h
@@ -0,0 +1,43 @@
+/*
+ Copyright (C) 2021 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+#include <boost/filesystem.hpp>
+#include <memory>
+#include <vector>
+
+
+class Content;
+
+
+namespace dcpomatic {
+
+
+/** Try to resolve some missing content file paths using a clue. On return
+ * any content whose files were found will have been updated.
+ *
+ * @param content Content, some of which may have missing files.
+ * @param clue Path to a file which gives a clue about where the missing files might be.
+ */
+void find_missing (std::vector<std::shared_ptr<Content>> content, boost::filesystem::path clue);
+
+
+}
+