xref: /haiku/src/add-ons/kernel/file_systems/btrfs/AttributeIterator.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2017, Chế Vũ Gia Hy, cvghy116@gmail.com.
3  * Copyright 2011, Jérôme Duval, korli@users.berlios.de.
4  * This file may be used under the terms of the MIT License.
5  */
6 #ifndef ATTRIBUTEITERATOR_H
7 #define ATTRIBUTEITERATOR_H
8 
9 
10 #include "BTree.h"
11 #include "Inode.h"
12 
13 
14 class AttributeIterator {
15 public:
16 								AttributeIterator(Inode* inode);
17 								~AttributeIterator();
18 
19 			status_t			InitCheck();
20 
21 			status_t			GetNext(char* name, size_t* _nameLength);
22 			status_t			Rewind();
23 private:
24 			uint64				fOffset;
25 			Inode* 				fInode;
26 			TreeIterator*		fIterator;
27 };
28 
29 
30 #endif	// ATTRIBUTEITERATOR_H
31