The beginning of the DiskDevice API.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2609 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-01-31 21:17:20 +00:00
parent f971378f16
commit d713d1d973
5 changed files with 318 additions and 0 deletions
@@ -0,0 +1,21 @@
// DiskDeviceIteration.h
#ifndef _DISK_DEVICE_VISITOR_H
#define _DISK_DEVICE_VISITOR_H
class BDiskDevice;
class BPartition;
class BSession;
// BDiskDeviceVisitor
class BDiskDeviceVisitor {
BDiskDeviceVisitor();
virtual ~BDiskDeviceVisitor();
// return true to abort iteration
virtual bool Visit(BDiskDevice *device);
virtual bool Visit(BSession *device);
virtual bool Visit(BPartition *device);
};
#endif _DISK_DEVICE_VISITOR_H