diff options
Diffstat (limited to 'netfs/fuse/fuseMappersImpl.h')
-rw-r--r-- | netfs/fuse/fuseMappersImpl.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/netfs/fuse/fuseMappersImpl.h b/netfs/fuse/fuseMappersImpl.h new file mode 100644 index 0000000..4b0677f --- /dev/null +++ b/netfs/fuse/fuseMappersImpl.h @@ -0,0 +1,25 @@ +#ifndef NETFS_MAPPING_CLIENTIMPL_H +#define NETFS_MAPPING_CLIENTIMPL_H + +#include "entries.h" +#include "entryResolver.h" +#include <fuseMappers.h> + +namespace NetFS { + namespace Client { + class HideUnknownMapperImpl : public HideUnknownMapper { + public: + HideUnknownMapperImpl(); + HideUnknownMapperImpl(EntryResolverPtr<User> u, EntryResolverPtr<Group> g); + + Mapping::Transport mapFileSystem(int uid, int gid) override; + Mapping::FileSystem mapTransport(const std::string & un, const std::string & gn) override; + + protected: + EntryResolverPtr<User> users; + EntryResolverPtr<Group> groups; + }; + } +} + +#endif |