summaryrefslogtreecommitdiff
path: root/src/xdg.hh
blob: 9232bbe7924f7c3cc11681856eaf148ad30c28df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef XDG_HH
#define XDG_HH

#include <filesystem>
#include <string_view>
#include <vector>

namespace xdg {

enum class Type {
  CONFIG,
  DATA,
  CACHE,
};

void paths_to_read(Type type, std::string_view path,
                   std::vector<std::filesystem::path>& out);

std::filesystem::path path_to_write(Type type, std::string_view path);

}  // namespace xdg

#endif  // XDG_HH