summaryrefslogtreecommitdiff
path: root/src/utils/xdg.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xdg.hpp')
-rw-r--r--src/utils/xdg.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/xdg.hpp b/src/utils/xdg.hpp
new file mode 100644
index 0000000..7be6922
--- /dev/null
+++ b/src/utils/xdg.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+
+#include <string>
+
+/**
+ * Returns a path for the given filename, according to the XDG base
+ * directory specification, see
+ * http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
+ */
+std::string xdg_config_path(const std::string& filename);
+std::string xdg_data_path(const std::string& filename);