blob: a5dace05f37047da82b3222725f0933f9e429f38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef WANDA_XDG_HPP
#define WANDA_XDG_HPP
#include "environment.hpp"
#include <cstddef>
#include <filesystem>
#include <type_traits>
namespace wanda
{
enum struct xdg_directory : std::underlying_type_t<std::byte>
{
data_home,
config_home,
cache_home,
runtime_dir,
};
std::string xdg_variable(xdg_directory directory);
std::filesystem::path xdg_path_for(xdg_directory directory, environment const &environment);
} // namespace wanda
#endif
|