diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2014-06-22 13:11:27 +1000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-25 12:40:10 -0400 |
commit | 24599c552d561a53375e5f76bb695cbfbb5eb934 (patch) | |
tree | 7874ae4d7a26f67a3cf4bc411f7fef261700105b /libs/pbd/file_utils.cc | |
parent | 54c0a0144c726e51a3a43ccd91c86328b18c5087 (diff) |
Add function PBD::find_paths_matching_filter
Diffstat (limited to 'libs/pbd/file_utils.cc')
-rw-r--r-- | libs/pbd/file_utils.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc index 9d7075e942..eb9661eab6 100644 --- a/libs/pbd/file_utils.cc +++ b/libs/pbd/file_utils.cc @@ -290,6 +290,17 @@ find_files_matching_regex (vector<string>& result, } void +find_paths_matching_filter (vector<string>& result, + const Searchpath& paths, + bool (*filter)(const string &, void *), + void *arg, + bool match_fullpath, bool return_fullpath, + bool recurse) +{ + run_functor_for_paths (result, paths, filter, arg, false, match_fullpath, return_fullpath, recurse); +} + +void find_files_matching_filter (vector<string>& result, const Searchpath& paths, bool (*filter)(const string &, void *), |