diff options
| author | Martin Owens <doctormo@gmail.com> | 2017-07-01 16:57:37 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2017-07-01 16:57:37 +0000 |
| commit | 31cc1cb9c2b08f768810396af76071a604fc90aa (patch) | |
| tree | fa9632e1ecbdad0ac39cec8612a9207d929c8f6a /src/io/resource.h | |
| parent | allows mac os build to fail as we have no mac runners yet (diff) | |
| download | inkscape-31cc1cb9c2b08f768810396af76071a604fc90aa.tar.gz inkscape-31cc1cb9c2b08f768810396af76071a604fc90aa.zip | |
Introduce get_filenames which scans paths for all filenames.
Diffstat (limited to 'src/io/resource.h')
| -rw-r--r-- | src/io/resource.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/io/resource.h b/src/io/resource.h index 0ea5ab4f0..ed877729c 100644 --- a/src/io/resource.h +++ b/src/io/resource.h @@ -64,6 +64,20 @@ Glib::ustring get_path_ustring(Domain domain, Type type, Glib::ustring get_filename(Type type, char const *filename, char const *locale=NULL); +std::vector<Glib::ustring> get_filenames(Type type, + std::vector<const char *> extensions={}, + std::vector<const char *> exclusions={}); + +std::vector<Glib::ustring> get_filenames(Domain domain, Type type, + std::vector<const char *> extensions={}, + std::vector<const char *> exclusions={}); + +void get_filenames_from_path(std::vector<Glib::ustring> &files, + Glib::ustring path, + std::vector<const char *> extensions={}, + std::vector<const char *> exclusions={}); + + char *profile_path(const char *filename); char *homedir_path(const char *filename); char *log_path(const char *filename); |
