ec9fdaac8f17b069da687c80637ac68efe1e2dfd
[ardour.git] / libs / ardour / ardour / template_utils.h
1
2 #ifndef TEMPLATE_UTILS_INCLUDED
3 #define TEMPLATE_UTILS_INCLUDED
4
5 #include <vector>
6
7 #include "pbd/filesystem.h"
8
9 namespace ARDOUR {
10
11         PBD::sys::path system_template_directory ();
12         PBD::sys::path system_route_template_directory ();
13
14         PBD::sys::path user_template_directory ();
15         PBD::sys::path user_route_template_directory ();
16
17         struct TemplateInfo {
18                 std::string name;
19                 std::string path;
20         };
21
22         void find_route_templates (std::vector<TemplateInfo>& template_names);
23         void find_session_templates (std::vector<TemplateInfo>& template_names);
24
25         std::string session_template_dir_to_file (std::string const &);
26
27 } // namespace ARDOUR
28
29 #endif