diff options
author | David Robillard <d@drobilla.net> | 2019-03-16 18:52:24 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-16 21:03:20 +0100 |
commit | f7ace4ffc6dabd93a4d0abc6121dd8dd87ce7af1 (patch) | |
tree | 8f380c8cae3a3b9b61c5141b83b7262027d6e13f /ingen | |
parent | 2058c121a6224263368d584c1cdc05c1819b0721 (diff) | |
download | ingen-f7ace4ffc6dabd93a4d0abc6121dd8dd87ce7af1.tar.gz ingen-f7ace4ffc6dabd93a4d0abc6121dd8dd87ce7af1.tar.bz2 ingen-f7ace4ffc6dabd93a4d0abc6121dd8dd87ce7af1.zip |
Properly support XDG_DATA_HOME and XDG_DATA_DIRS
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/runtime_paths.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ingen/runtime_paths.hpp b/ingen/runtime_paths.hpp index 2575efa1..fb697b14 100644 --- a/ingen/runtime_paths.hpp +++ b/ingen/runtime_paths.hpp @@ -30,12 +30,20 @@ extern const char search_path_separator; INGEN_API void set_bundle_path(const char* path); INGEN_API void set_bundle_path_from_code(void* function); +INGEN_API FilePath +find_in_search_path(const std::string& name, + const std::vector<FilePath>& search_path); + INGEN_API FilePath bundle_file_path(const std::string& name); INGEN_API FilePath data_file_path(const std::string& name); INGEN_API FilePath ingen_module_path(const std::string& name, FilePath dir={}); INGEN_API FilePath user_config_dir(); +INGEN_API FilePath user_data_dir(); INGEN_API std::vector<FilePath> system_config_dirs(); +INGEN_API std::vector<FilePath> system_data_dirs(); +INGEN_API std::vector<FilePath> config_dirs(); +INGEN_API std::vector<FilePath> data_dirs(); } // namespace ingen |