]> git.sesse.net Git - nageru/blobdiff - image_input.h
Make search_for_file (in ImageInput) available to the rest of the code.
[nageru] / image_input.h
index 02be497ff40e2dccee5f569a5be2e1e98a6ae4c5..f38426441b0691a73dd6b0cd94f2840a3ff3906c 100644 (file)
@@ -46,4 +46,12 @@ private:
        static std::condition_variable threads_should_quit_modified;  // Signals when threads_should_quit is set.
 };
 
+// Look for the file in all theme_dirs until we find one;
+// that will be the permanent resolution of this file, whether
+// it is actually valid or not. Returns an empty string on error.
+std::string search_for_file(const std::string &filename);
+
+// Same, but exits on error.
+std::string search_for_file_or_die(const std::string &filename);
+
 #endif // !defined(_IMAGE_INPUT_H)