From 06950aab233de6a2f47293d59575bb42f6131660 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 27 Jan 2021 22:06:49 +0100 Subject: Complete rewrite using C++ and with shared state support --- src/xdg.hh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/xdg.hh (limited to 'src/xdg.hh') diff --git a/src/xdg.hh b/src/xdg.hh new file mode 100644 index 0000000..1c7e4f0 --- /dev/null +++ b/src/xdg.hh @@ -0,0 +1,23 @@ +#ifndef XDG_HH +#define XDG_HH + +#include +#include +#include + +namespace xdg { + +enum class Type { + CONFIG, + DATA, + CACHE, +}; + +void paths_to_read(Type type, std::string_view path, + std::vector* out); + +std::filesystem::path path_to_write(Type type, std::string_view path); + +} // namespace xdg + +#endif // XDG_HH -- cgit v1.2.3-70-g09d2