btrfs: document DirectoryIterator class (no functional change)
Change-Id: Iffbd7112a9a266b65d6dd56dbd040f04e5ab58b2 Reviewed-on: https://review.haiku-os.org/c/1493 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
72ab11b563
commit
ef52a3d48f
@ -11,6 +11,7 @@
|
|||||||
#include "Inode.h"
|
#include "Inode.h"
|
||||||
|
|
||||||
|
|
||||||
|
//! Class used to iterate through entries in a directory
|
||||||
class DirectoryIterator {
|
class DirectoryIterator {
|
||||||
public:
|
public:
|
||||||
DirectoryIterator(Inode* inode);
|
DirectoryIterator(Inode* inode);
|
||||||
@ -18,8 +19,19 @@ public:
|
|||||||
|
|
||||||
status_t InitCheck();
|
status_t InitCheck();
|
||||||
|
|
||||||
|
/*! Get details of next entry
|
||||||
|
* \param name Location to copy name of next entry
|
||||||
|
* \param _nameLength Location to copy length of next entry's name
|
||||||
|
* \param _id Location to copy inode number of next entry
|
||||||
|
*/
|
||||||
status_t GetNext(char* name, size_t* _nameLength, ino_t* _id);
|
status_t GetNext(char* name, size_t* _nameLength, ino_t* _id);
|
||||||
|
/*! Search for item in current directory
|
||||||
|
* \param name Name of entry to lookup
|
||||||
|
* \param nameLength Length of name being searched
|
||||||
|
* \param _id inode value of entry if found, ??? otherwise
|
||||||
|
*/
|
||||||
status_t Lookup(const char* name, size_t nameLength, ino_t* _id);
|
status_t Lookup(const char* name, size_t nameLength, ino_t* _id);
|
||||||
|
//! Reset iterator to beginning
|
||||||
status_t Rewind();
|
status_t Rewind();
|
||||||
private:
|
private:
|
||||||
uint64 fOffset;
|
uint64 fOffset;
|
||||||
|
Loading…
Reference in New Issue
Block a user