summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/search_path.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-10-19 14:46:50 +1000
committerPaul Davis <paul@linuxaudiosystems.com>2015-10-22 11:51:03 -0400
commit3bd928591b62443631b373a2c8a2481aa3cff764 (patch)
tree1a6e68834530b038210e439b6b7cf699d31c29d9 /libs/pbd/pbd/search_path.h
parentc07ea1bc73672e9f05b4e669fa0fc9ad2cd91f28 (diff)
Add PBD::Searchpath::contains method to check if a Searchpath contains a path
Diffstat (limited to 'libs/pbd/pbd/search_path.h')
-rw-r--r--libs/pbd/pbd/search_path.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/pbd/pbd/search_path.h b/libs/pbd/pbd/search_path.h
index f669d7f25a..d287782aca 100644
--- a/libs/pbd/pbd/search_path.h
+++ b/libs/pbd/pbd/search_path.h
@@ -134,6 +134,10 @@ public:
*/
LIBPBD_TEMPLATE_MEMBER_API void remove_directories (const std::vector<std::string>& paths);
+ /**
+ * @return true if Searchpath already contains path
+ */
+ LIBPBD_TEMPLATE_MEMBER_API bool contains (const std::string& path) const;
};
LIBPBD_API void export_search_path (const std::string& base_dir, const char* varname, const char* dir);