summaryrefslogtreecommitdiff
path: root/louloulibs/utils/xdg.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/utils/xdg.hpp')
-rw-r--r--louloulibs/utils/xdg.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/louloulibs/utils/xdg.hpp b/louloulibs/utils/xdg.hpp
new file mode 100644
index 0000000..20f5bb7
--- /dev/null
+++ b/louloulibs/utils/xdg.hpp
@@ -0,0 +1,13 @@
+#ifndef XDG_HPP_INCLUDED
+#define XDG_HPP_INCLUDED
+
+#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);
+
+#endif /* XDG_HPP_INCLUDED */