X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Ftemplate_utils.h;h=a865e8721047e85bf6eac12e1bf8d46384fcc7b5;hb=6bd583803ea1daf19a1c088766122b5cdf340171;hp=dc56c53c445b39d4b992e2e50554d1fa6693d62b;hpb=2ba58dfe65bb0c5ba7d5eb18a1566fa79eeb6993;p=ardour.git diff --git a/libs/ardour/ardour/template_utils.h b/libs/ardour/ardour/template_utils.h index dc56c53c44..a865e87210 100644 --- a/libs/ardour/ardour/template_utils.h +++ b/libs/ardour/ardour/template_utils.h @@ -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 #include +#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& template_names); - LIBARDOUR_API void find_session_templates (std::vector& template_names); + LIBARDOUR_API void find_session_templates (std::vector& template_names, bool read_xml = false); LIBARDOUR_API std::string session_template_dir_to_file (std::string const &);