aboutsummaryrefslogtreecommitdiff
path: root/src/xdg.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdg.hpp')
-rw-r--r--src/xdg.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/xdg.hpp b/src/xdg.hpp
new file mode 100644
index 0000000..a5dace0
--- /dev/null
+++ b/src/xdg.hpp
@@ -0,0 +1,25 @@
+#ifndef WANDA_XDG_HPP
+#define WANDA_XDG_HPP
+
+#include "environment.hpp"
+
+#include <cstddef>
+#include <filesystem>
+#include <type_traits>
+
+namespace wanda
+{
+enum struct xdg_directory : std::underlying_type_t<std::byte>
+{
+ data_home,
+ config_home,
+ cache_home,
+ runtime_dir,
+};
+
+std::string xdg_variable(xdg_directory directory);
+
+std::filesystem::path xdg_path_for(xdg_directory directory, environment const &environment);
+} // namespace wanda
+
+#endif \ No newline at end of file