summaryrefslogtreecommitdiff
path: root/src/xdg.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdg.hh')
-rw-r--r--src/xdg.hh25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/xdg.hh b/src/xdg.hh
new file mode 100644
index 0000000..99d1c24
--- /dev/null
+++ b/src/xdg.hh
@@ -0,0 +1,25 @@
+// -*- mode: c++; c-basic-offset: 2; -*-
+
+#ifndef XDG_HH
+#define XDG_HH
+
+#include <string>
+#include <vector>
+
+class XDG {
+public:
+ static std::string config_home();
+ // Returned list is sorted in order of importance, directories may not exist
+ static std::vector<std::string> config_dirs();
+ static std::string data_home();
+ // Returned list is sorted in order of importance, directories may not exist
+ static std::vector<std::string> data_dirs();
+ static std::string cache_home();
+ static std::string home();
+
+private:
+ XDG() {}
+ ~XDG() {}
+};
+
+#endif // XDG_HH