status_t Directory::GetNextEntry(void *cookie, char *name, size_t size) { TreeIterator *iterator = (TreeIterator *)cookie; uint16 length; off_t id; return iterator->GetNextEntry(name, &length, size, &id); }
status_t Directory::GetNextNode(void *cookie, Node **_node) { TreeIterator *iterator = (TreeIterator *)cookie; char name[B_FILE_NAME_LENGTH]; uint16 length; off_t id; status_t status = iterator->GetNextEntry(name, &length, sizeof(name), &id); if (status != B_OK) return status; *_node = Stream::NodeFactory(fStream.GetVolume(), id); if (*_node == NULL) return B_ERROR; return B_OK; }