diff options
author | Max Kellermann <max@duempel.org> | 2014-10-06 20:06:54 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-07 06:35:50 +0200 |
commit | 07b50f6c6985581f2db397b3adfacda09deba390 (patch) | |
tree | 2c3e4b1850a549825ddf10ef97f6619574809962 /src/lib/nfs/Connection.hxx | |
parent | 61b3aaaa0791ca6ac327de6c44a107b99ce78926 (diff) | |
download | mpd-07b50f6c6985581f2db397b3adfacda09deba390.tar.gz mpd-07b50f6c6985581f2db397b3adfacda09deba390.tar.xz mpd-07b50f6c6985581f2db397b3adfacda09deba390.zip |
lib/nfs/Connection: add methods {Open,Read,Close}Directory()
Diffstat (limited to 'src/lib/nfs/Connection.hxx')
-rw-r--r-- | src/lib/nfs/Connection.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 <forward_list> 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); |