blob: 2fb574e2a5498fbc4874d3c5ab298e965dcf8db7 [file] [log] [blame]
Patrick Venturec18e2b62018-11-21 14:19:28 -08001#pragma once
2
3#include <functional>
4#include <string>
5#include <vector>
6
7namespace blobs
8{
9using 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 */
20std::vector<std::string> getLibraryList(const std::string& path,
21 PathMatcher check);
22
23} // namespace blobs