blob: 8bd4c75cee8151221cf4b070b7d117048846b125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|