Files
haiku-beta6/headers/private/storage/PartitioningInfo.h
T

37 lines
864 B
C++
Raw Normal View History

2003-05-28 21:51:24 +00:00
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
#ifndef _PARTITIONING_INFO_H
#define _PARTITIONING_INFO_H
2003-07-20 17:21:06 +00:00
#include <DiskDeviceDefs.h>
struct partitionable_space_data;
2003-05-28 21:51:24 +00:00
class BPartitioningInfo {
public:
2003-07-20 17:21:06 +00:00
BPartitioningInfo();
virtual ~BPartitioningInfo();
void Unset();
partition_id PartitionID() const;
status_t GetPartitionableSpaceAt(int32 index, off_t *offset,
off_t *size) const;
int32 CountPartitionableSpaces() const;
2003-05-28 21:51:24 +00:00
private:
2003-07-22 00:12:54 +00:00
status_t _SetTo(partition_id partition, int32 changeCounter);
2003-07-20 17:21:06 +00:00
friend class BPartition;
partition_id fPartitionID;
partitionable_space_data *fSpaces;
int32 fCount;
2003-05-28 21:51:24 +00:00
};
#endif // _PARTITIONING_INFO_H