summaryrefslogtreecommitdiff
path: root/mythfs/service/openDirectory.h
blob: db0f1f68a9c0e92cd5eaaa9ac6273a76aaa583c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MYTHFS_OPENDIRECTORY_H
#define MYTHFS_OPENDIRECTORY_H

#include <directory.h>
#include "inodes/node.h"

namespace MythFS {
	class OpenDirectory : public ::NetFS::DirectoryV2 {
		public:
			OpenDirectory(Node::PointerType);

			::NetFS::NameList readdir(const Ice::Current &) override;
			::NetFS::DirectoryContents listdir(const Ice::Current &) override;
			void close(const Ice::Current &) override;
		private:
			Node::PointerType directory;
	};
}

#endif