summaryrefslogtreecommitdiff
path: root/src/xdg.hh
blob: 1c7e4f092d2cdecc6850836d71913863a86062cc (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