summaryrefslogtreecommitdiff
path: root/mythfs/service/openDirectory.h
blob: cd6e2005b1bbdfe32047cb9577508cf1904a4668 (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::Directory {
		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