diff options
Diffstat (limited to 'src/paths.hh')
| -rw-r--r-- | src/paths.hh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/paths.hh b/src/paths.hh new file mode 100644 index 0000000..8bd4c75 --- /dev/null +++ b/src/paths.hh @@ -0,0 +1,20 @@ +#ifndef PATHS_HH +#define PATHS_HH + +#include <filesystem> // IWYU pragma: export +#include <vector> + +namespace paths { + +// Return home directory, goes HOME, /etc/passwd entry, / in that order. +std::filesystem::path home(); + +// Return config directories for reading, in order of priority. +std::vector<std::filesystem::path> config_dirs(); + +// Return data directories for reading, in order of priority. +std::vector<std::filesystem::path> data_dirs(); + +} // namespace paths + +#endif // PATHS_HH |
