From 4c25da8a7ba7437657c3e2da592145113d3532f4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Jul 2019 10:53:14 +0100 Subject: Initial commit Not a lot of stuff, hard coded paths, tests against /usr/portage --- src/dir.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/dir.h (limited to 'src/dir.h') diff --git a/src/dir.h b/src/dir.h new file mode 100644 index 0000000..74afde3 --- /dev/null +++ b/src/dir.h @@ -0,0 +1,24 @@ +#ifndef GITFS_DIRECTORY_H +#define GITFS_DIRECTORY_H + +#include +#include "git.h" + +namespace GitFS { + using namespace NetFS; + class Directory : public DirectoryV2 { + public: + Directory(const GitFS::Git::TreePtr & r, const std::string &); + + void close(const ::Ice::Current& current) override; + NameList readdir(const ::Ice::Current& current) override; + DirectoryContents listdir(const ::Ice::Current& current) override; + + private: + Git::TreePtr tree; + const std::string path; + }; +} + +#endif + -- cgit v1.2.3