1 /* 2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef ATTRIBUTE_DIRECTORY_COOKIE_H 6 #define ATTRIBUTE_DIRECTORY_COOKIE_H 7 8 9 #include <dirent.h> 10 11 #include <SupportDefs.h> 12 13 14 class AttributeDirectoryCookie { 15 public: 16 virtual ~AttributeDirectoryCookie(); 17 18 virtual status_t Close(); 19 virtual status_t Read(dev_t volumeID, ino_t nodeID, 20 struct dirent* buffer, size_t bufferSize, 21 uint32* _count) = 0; 22 virtual status_t Rewind() = 0; 23 }; 24 25 26 #endif // ATTRIBUTE_DIRECTORY_COOKIE_H 27