xref: /haiku/headers/private/storage/DiskDeviceVisitor.h (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
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 
11 class BDiskDevice;
12 class BPartition;
13 
14 // BDiskDeviceVisitor
15 class BDiskDeviceVisitor {
16 public:
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