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.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/utils/xdg.hpp b/src/utils/xdg.hpp
new file mode 100644
index 0000000..56e11da
--- /dev/null
+++ b/src/utils/xdg.hpp
@@ -0,0 +1,14 @@
+#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);
+
+