diff options
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 |
