Modified the visitor implementation a bit. The Visit() with the BPartition* argument now also gets the level of the partition in the hierarchy.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3900 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#ifndef _DISK_DEVICE_VISITOR_H
|
||||
#define _DISK_DEVICE_VISITOR_H
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
class BDiskDevice;
|
||||
class BPartition;
|
||||
|
||||
@@ -17,7 +19,7 @@ public:
|
||||
|
||||
// return true to abort iteration
|
||||
virtual bool Visit(BDiskDevice *device);
|
||||
virtual bool Visit(BPartition *partition);
|
||||
virtual bool Visit(BPartition *partition, int32 level);
|
||||
};
|
||||
|
||||
#endif _DISK_DEVICE_VISITOR_H
|
||||
|
||||
Reference in New Issue
Block a user