diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-07-01 16:58:40 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-07-01 16:58:40 +0000 |
| commit | b01ea98e75ffee1fa243a929e5f3eac87f63e4e2 (patch) | |
| tree | f15eddd9a2a7ca8c94cafffc73bdf5b865bb5f5a /src/io/resource.h | |
| parent | Merge branch 'speed_up_drawing' of gitlab.com:psychon/inkscape (diff) | |
| parent | Introduce get_filenames which scans paths for all filenames. (diff) | |
| download | inkscape-b01ea98e75ffee1fa243a929e5f3eac87f63e4e2.tar.gz inkscape-b01ea98e75ffee1fa243a929e5f3eac87f63e4e2.zip | |
Merge branch 'master' of gitlab.com:inkscape/inkscape
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); |
