1//---------------------------------------------------------------------- 2// This software is part of the Haiku distribution and is covered 3// by the MIT License. 4//--------------------------------------------------------------------- 5 6#ifndef _DISK_DEVICE_VISITOR_H 7#define _DISK_DEVICE_VISITOR_H 8 9#include <SupportDefs.h> 10 11class BDiskDevice; 12class BPartition; 13 14// BDiskDeviceVisitor 15class BDiskDeviceVisitor { 16public: 17 BDiskDeviceVisitor(); 18 virtual ~BDiskDeviceVisitor(); 19 20 // return true to abort iteration 21 virtual bool Visit(BDiskDevice *device); 22 virtual bool Visit(BPartition *partition, int32 level); 23}; 24 25#endif // _DISK_DEVICE_VISITOR_H 26