vfs: check userland buffers before reading them.
[haiku.git] / headers / private / storage / DiskDeviceVisitor.h
blobb7a263d25dc62bfbf14d42376c1806ef028dfc41
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //---------------------------------------------------------------------
6 #ifndef _DISK_DEVICE_VISITOR_H
7 #define _DISK_DEVICE_VISITOR_H
9 #include <SupportDefs.h>
11 class BDiskDevice;
12 class BPartition;
14 // BDiskDeviceVisitor
15 class BDiskDeviceVisitor {
16 public:
17 BDiskDeviceVisitor();
18 virtual ~BDiskDeviceVisitor();
20 // return true to abort iteration
21 virtual bool Visit(BDiskDevice *device);
22 virtual bool Visit(BPartition *partition, int32 level);
25 #endif // _DISK_DEVICE_VISITOR_H