From 07b50f6c6985581f2db397b3adfacda09deba390 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Oct 2014 20:06:54 +0200 Subject: lib/nfs/Connection: add methods {Open,Read,Close}Directory() --- src/lib/nfs/Connection.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/nfs/Connection.hxx') diff --git a/src/lib/nfs/Connection.hxx b/src/lib/nfs/Connection.hxx index a82921d4e..aebafd4d3 100644 --- a/src/lib/nfs/Connection.hxx +++ b/src/lib/nfs/Connection.hxx @@ -33,6 +33,8 @@ #include struct nfs_context; +struct nfsdir; +struct nfsdirent; class NfsCallback; /** @@ -66,6 +68,8 @@ class NfsConnection : SocketMonitor, DeferredMonitor { bool Stat(nfs_context *context, const char *path, Error &error); + bool OpenDirectory(nfs_context *context, const char *path, + Error &error); bool Open(nfs_context *context, const char *path, int flags, Error &error); bool Stat(nfs_context *context, struct nfsfh *fh, @@ -158,6 +162,12 @@ public: void RemoveLease(NfsLease &lease); bool Stat(const char *path, NfsCallback &callback, Error &error); + + bool OpenDirectory(const char *path, NfsCallback &callback, + Error &error); + const struct nfsdirent *ReadDirectory(struct nfsdir *dir); + void CloseDirectory(struct nfsdir *dir); + bool Open(const char *path, int flags, NfsCallback &callback, Error &error); bool Stat(struct nfsfh *fh, NfsCallback &callback, Error &error); -- cgit v1.2.3