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>2022-05-02 00:31:04 +0200
commit266e3f1b80d1263ff3cc8b3afaecd6ca1f88983b (patch)
treeeeb717e9eaa72e1b70f0a9ff1f2e7bad4ddc2a5b /src/lib/find_missing.h
parent469a5dbd4251b094e6d4b668a763568c25947b88 (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);
+
+
+}
+