rename TransportMasterManager::init() to ::set_default_configuration() to make its...
[ardour.git] / libs / ardour / ardour / template_utils.h
index dc56c53c445b39d4b992e2e50554d1fa6693d62b..a865e8721047e85bf6eac12e1bf8d46384fcc7b5 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Paul Davis 
+    Copyright (C) 2012 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
 #include <string>
 #include <vector>
 
+#include "ardour/utils.h"
 #include "ardour/libardour_visibility.h"
 
 namespace ARDOUR {
@@ -37,10 +38,16 @@ namespace ARDOUR {
        struct LIBARDOUR_API TemplateInfo {
                std::string name;
                std::string path;
+               std::string description;
+               std::string modified_with;
+
+               bool operator < (const TemplateInfo& other) const {
+                       return cmp_nocase_utf8 (name, other.name) < 0;
+               }
        };
 
        LIBARDOUR_API void find_route_templates (std::vector<TemplateInfo>& template_names);
-       LIBARDOUR_API void find_session_templates (std::vector<TemplateInfo>& template_names);
+       LIBARDOUR_API void find_session_templates (std::vector<TemplateInfo>& template_names, bool read_xml = false);
 
        LIBARDOUR_API std::string session_template_dir_to_file (std::string const &);