X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=image_input.h;h=f38426441b0691a73dd6b0cd94f2840a3ff3906c;hb=6c6b3789c78670e75a72edf743d204ab056bd9e0;hp=02be497ff40e2dccee5f569a5be2e1e98a6ae4c5;hpb=f1182ee6109998c95484191a046033b32cb65828;p=nageru diff --git a/image_input.h b/image_input.h index 02be497..f384264 100644 --- a/image_input.h +++ b/image_input.h @@ -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)