Implemented BPartitionableSpace.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,18 +6,31 @@
|
||||
#ifndef _PARTITIONING_INFO_H
|
||||
#define _PARTITIONING_INFO_H
|
||||
|
||||
#include <SupportDefs.h>
|
||||
#include <DiskDeviceDefs.h>
|
||||
|
||||
struct partitionable_space_data;
|
||||
|
||||
class BPartitioningInfo {
|
||||
public:
|
||||
BPartitioningInfo();
|
||||
virtual ~BPartitioningInfo();
|
||||
|
||||
void Unset();
|
||||
|
||||
partition_id PartitionID() const;
|
||||
|
||||
status_t GetPartitionableSpaceAt(int32 index, off_t *offset,
|
||||
off_t *size) const;
|
||||
int32 CountPartitionableSpaces() const;
|
||||
|
||||
private:
|
||||
off_t *fOffsets;
|
||||
off_t *fSizes;
|
||||
int32 fCount;
|
||||
status_t _SetTo(partition_id partition);
|
||||
|
||||
friend class BPartition;
|
||||
|
||||
partition_id fPartitionID;
|
||||
partitionable_space_data *fSpaces;
|
||||
int32 fCount;
|
||||
};
|
||||
|
||||
#endif // _PARTITIONING_INFO_H
|
||||
|
||||
Reference in New Issue
Block a user