summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-03-11 10:30:42 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-03-11 10:39:15 -0500
commit1644fc1068a5c28b78ba70078de3b9b5c7570f72 (patch)
tree0b1198dfe3f95a691348e7b40fcfabdde5cc4ec6 /libs/ardour/ardour
parent99260742d24001976a476959f725a461110a7575 (diff)
hide user_config_dir_name; alter API for user_config_dir() to allow specification of a version number
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/directory_names.h1
-rw-r--r--libs/ardour/ardour/filesystem_paths.h11
2 files changed, 8 insertions, 4 deletions
diff --git a/libs/ardour/ardour/directory_names.h b/libs/ardour/ardour/directory_names.h
index 17532e2a3a..db3fc1d533 100644
--- a/libs/ardour/ardour/directory_names.h
+++ b/libs/ardour/ardour/directory_names.h
@@ -40,7 +40,6 @@ namespace ARDOUR {
LIBARDOUR_API extern const char* const route_templates_dir_name;
LIBARDOUR_API extern const char* const surfaces_dir_name;
LIBARDOUR_API extern const char* const ladspa_dir_name;
- LIBARDOUR_API extern const char* const user_config_dir_name;
LIBARDOUR_API extern const char* const panner_dir_name;
LIBARDOUR_API extern const char* const backend_dir_name;
diff --git a/libs/ardour/ardour/filesystem_paths.h b/libs/ardour/ardour/filesystem_paths.h
index a6ca2d1c77..82b84f5424 100644
--- a/libs/ardour/ardour/filesystem_paths.h
+++ b/libs/ardour/ardour/filesystem_paths.h
@@ -27,11 +27,16 @@
namespace ARDOUR {
/**
- * @return the path to the directory used to store user specific ardour
- * configuration files.
+ * @return the path to the directory used to store user specific
+ * configuration files for the given @param version of the program.
+ * If @param version is negative, the build-time string PROGRAM_VERSION
+ * will be used to determine the version number.
+ *
* @post user_config_directory() exists
+ *
+ *
*/
- LIBARDOUR_API std::string user_config_directory ();
+ LIBARDOUR_API std::string user_config_directory (int version = -1);
/**
* @return the path to the directory used to store user specific