summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-10-19 13:04:00 +1000
committerPaul Davis <paul@linuxaudiosystems.com>2015-10-22 11:51:03 -0400
commitc07ea1bc73672e9f05b4e669fa0fc9ad2cd91f28 (patch)
tree38e66c3d8431d22d710ab5fcc366dc68baa324cf /libs/pbd/pbd
parent76d43487da0fab3e0fceae4d091859b3d495562e (diff)
Expose protected PBD::Searchpath API
I prefer to use these as they are more explicit than using the overloaded operators.
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/search_path.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/libs/pbd/pbd/search_path.h b/libs/pbd/pbd/search_path.h
index 41b1ffee55..f669d7f25a 100644
--- a/libs/pbd/pbd/search_path.h
+++ b/libs/pbd/pbd/search_path.h
@@ -114,12 +114,26 @@ public:
*/
LIBPBD_TEMPLATE_MEMBER_API Searchpath& add_subdirectory_to_paths (const std::string& subdir);
-protected:
-
+ /**
+ * Add directory_path to this Searchpath.
+ */
LIBPBD_TEMPLATE_MEMBER_API void add_directory (const std::string& directory_path);
+
+ /**
+ * Add directories in paths to this Searchpath.
+ */
LIBPBD_TEMPLATE_MEMBER_API void add_directories (const std::vector<std::string>& paths);
+
+ /**
+ * Remove directory_path from this Searchpath.
+ */
LIBPBD_TEMPLATE_MEMBER_API void remove_directory (const std::string& directory_path);
+
+ /**
+ * Remove all the directories in paths from this Searchpath.
+ */
LIBPBD_TEMPLATE_MEMBER_API void remove_directories (const std::vector<std::string>& paths);
+
};
LIBPBD_API void export_search_path (const std::string& base_dir, const char* varname, const char* dir);