*/
LIBARDOUR_API PBD::Searchpath panner_search_path ();
+ /**
+ * return a Searchpath containing directories in which to look for
+ * route templates.
+ */
+ LIBARDOUR_API PBD::Searchpath route_template_search_path ();
+
+ /**
+ * return a Searchpath containing directories in which to look for
+ * other templates.
+ */
+ LIBARDOUR_API PBD::Searchpath template_search_path ();
+
} // namespace ARDOUR
#endif /* __libardour_search_paths_h__ */
return spath;
}
+Searchpath
+template_search_path ()
+{
+ Searchpath spath (ardour_data_search_path());
+ spath.add_subdirectory_to_paths(templates_dir_name);
+ return spath;
+}
+
+Searchpath
+route_template_search_path ()
+{
+ Searchpath spath (ardour_data_search_path());
+ spath.add_subdirectory_to_paths(route_templates_dir_name);
+ return spath;
+}
+
#ifdef PLATFORM_WINDOWS
const char*
#include "ardour/directory_names.h"
#include "ardour/filesystem_paths.h"
#include "ardour/filename_extensions.h"
+#include "ardour/search_paths.h"
#include "ardour/io.h"
using namespace std;
namespace ARDOUR {
-Searchpath
-template_search_path ()
-{
- Searchpath spath (ardour_data_search_path());
- spath.add_subdirectory_to_paths(templates_dir_name);
- return spath;
-}
-
-Searchpath
-route_template_search_path ()
-{
- Searchpath spath (ardour_data_search_path());
- spath.add_subdirectory_to_paths(route_templates_dir_name);
- return spath;
-}
-
std::string
user_template_directory ()
{