xref: /haiku/headers/private/storage/DiskDeviceVisitor.h (revision d5cd5d63ff0ad395989db6cf4841a64d5b545d1d)
1 //----------------------------------------------------------------------
2 //  This software is part of the OpenBeOS distribution and is covered
3 //  by the OpenBeOS 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