* Added functions FindPartitionByVolume() and FindPartitionByMountPoint()
that conveniently bridge BVolumes/mount points with BPartitions. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -18,6 +18,7 @@ class BDiskDeviceVisitor;
|
||||
class BDiskScannerPartitionAddOn;
|
||||
class BDiskSystem;
|
||||
class BPartition;
|
||||
class BVolume;
|
||||
|
||||
namespace BPrivate {
|
||||
class AddOnImage;
|
||||
@@ -115,6 +116,13 @@ public:
|
||||
BDiskDevice* device = NULL,
|
||||
BPartition** _partition = NULL);
|
||||
|
||||
status_t FindPartitionByVolume(BVolume* volume,
|
||||
BDiskDevice* device,
|
||||
BPartition** _partition);
|
||||
status_t FindPartitionByMountPoint(const char* mountPoint,
|
||||
BDiskDevice* device,
|
||||
BPartition** _partition);
|
||||
|
||||
status_t GetDeviceWithID(partition_id id,
|
||||
BDiskDevice* device) const;
|
||||
status_t GetPartitionWithID(partition_id id,
|
||||
|
||||
Reference in New Issue
Block a user