summaryrefslogtreecommitdiff
path: root/netfs/fuse/fuseMappersImpl.h
blob: 2bcf57966ef632a73209ba110a60c0b1c8f43f79 (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
26
27
28
29
30
#ifndef NETFS_MAPPING_CLIENTIMPL_H
#define NETFS_MAPPING_CLIENTIMPL_H

#include "baseMapper.h"
#include "entries.h"
#include "entryResolver.h"
#include <fuseMappers.h>
#include <visibility.h>

namespace NetFS {
	namespace Client {
		class DLL_PUBLIC HideUnknownMapperImpl : public HideUnknownMapper, Mapping::BaseMapper {
		public:
			using BaseMapper::BaseMapper;

			Mapping::Transport mapFileSystem(int uid, int gid) override;
			Mapping::FileSystem mapTransport(const std::string & un, const std::string & gn) override;
		};

		class DLL_PUBLIC MaskUnknownMapperImpl : public MaskUnknownMapper, Mapping::BaseMapper {
		public:
			using BaseMapper::BaseMapper;

			Mapping::Transport mapFileSystem(int uid, int gid) override;
			Mapping::FileSystem mapTransport(const std::string & un, const std::string & gn) override;
		};
	}
}

#endif