summaryrefslogtreecommitdiffstats
path: root/ingen/Configuration.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:56:50 +0100
commita99b72e4adbc4c28fadc08d29299d99405f72db9 (patch)
treefb21f2cea8f5db1dc187cdbdd01f43e73bbddfff /ingen/Configuration.hpp
parent329f498d901f9be9c0c820749850f5277a17df5d (diff)
downloadingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.gz
ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.bz2
ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.zip
Add FilePath class and remove use of glib path utilities
Diffstat (limited to 'ingen/Configuration.hpp')
-rw-r--r--ingen/Configuration.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/ingen/Configuration.hpp b/ingen/Configuration.hpp
index ae5e4909..67104422 100644
--- a/ingen/Configuration.hpp
+++ b/ingen/Configuration.hpp
@@ -30,6 +30,7 @@
namespace Ingen {
+class FilePath;
class Forge;
class URIMap;
@@ -81,7 +82,7 @@ public:
void parse(int argc, char** argv) throw (OptionError);
/** Load a specific file. */
- bool load(const std::string& path);
+ bool load(const FilePath& path);
/** Save configuration to a file.
*
@@ -98,10 +99,10 @@ public:
*
* @return The absolute path of the saved configuration file.
*/
- std::string save(URIMap& uri_map,
- const std::string& app,
- const std::string& filename,
- unsigned scopes) throw (FileError);
+ FilePath save(URIMap& uri_map,
+ const std::string& app,
+ const FilePath& filename,
+ unsigned scopes) throw (FileError);
/** Load files from the standard configuration directories for the app.
*
@@ -109,8 +110,8 @@ public:
* will be loaded before the user's, e.g. ~/.config/appname/filename,
* so the user options will override the system options.
*/
- std::list<std::string> load_default(const std::string& app,
- const std::string& filename);
+ std::list<FilePath> load_default(const std::string& app,
+ const FilePath& filename);
const Atom& option(const std::string& long_name) const;
bool set(const std::string& long_name, const Atom& value);