blob: 973af4ce2a39f1ad3a7417d18def17d073271541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef NETFS_ENTRYRESOLVER_H
#define NETFS_ENTRYRESOLVER_H
#include <cstdint>
#include <unistd.h>
enum class ResolvedAs : uint8_t {
Real,
Fallback,
};
template<typename id_t, typename name_t> class EntryResolver {
public:
virtual ~EntryResolver() = default;
virtual ResolvedAs getID(const name_t &, id_t *) const = 0;
virtual ResolvedAs getName(const id_t &, name_t *) const = 0;
};
#endif
|