1 #pragma once 2 3 #include <functional> 4 #include <string> 5 #include <vector> 6 7 namespace blobs 8 { 9 using PathMatcher = std::function<bool(const std::string& filename)>; 10 11 /** 12 * Returns a list of library paths. Checks against match method. 13 * 14 * TODO: Can be dropped if we implement a clean fs wrapper for test injection. 15 * 16 * @param[in] path - the path to search 17 * @param[in] check - the function to call to check the path 18 * @return a list of paths that match the criteria 19 */ 20 std::vector<std::string> getLibraryList(const std::string& path, 21 PathMatcher check); 22 23 } // namespace blobs 24