diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-01-27 22:06:49 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-01-27 22:06:49 +0100 |
| commit | 06950aab233de6a2f47293d59575bb42f6131660 (patch) | |
| tree | 62f6eed4a6d35414f656d22b9ac7420849018a11 /src/xdg.hh | |
| parent | 1ef9c463f1efc1adfb62e42ab3dd17e8c6394373 (diff) | |
Complete rewrite using C++ and with shared state support
Diffstat (limited to 'src/xdg.hh')
| -rw-r--r-- | src/xdg.hh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/xdg.hh b/src/xdg.hh new file mode 100644 index 0000000..1c7e4f0 --- /dev/null +++ b/src/xdg.hh @@ -0,0 +1,23 @@ +#ifndef XDG_HH +#define XDG_HH + +#include <filesystem> +#include <string_view> +#include <vector> + +namespace xdg { + +enum class Type { + CONFIG, + DATA, + CACHE, +}; + +void paths_to_read(Type type, std::string_view path, + std::vector<std::filesystem::path>* out); + +std::filesystem::path path_to_write(Type type, std::string_view path); + +} // namespace xdg + +#endif // XDG_HH |
