SetParent() is now a public function (could be made private again and friend of

add_partitions_for(), though).
The partition now also tracks if it refers to a partitioning system or not.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-03 02:10:10 +00:00
parent cc17162615
commit ec5d706492

View File

@ -28,17 +28,18 @@ class Partition : public Node, public partition_data {
status_t Mount(Directory **_fileSystem = NULL);
status_t Scan(bool mountFileSystems);
void SetParent(Partition *parent) { fParent = parent; }
Partition *Parent() const { return fParent; }
bool IsFileSystem() const { return fIsFileSystem; }
bool IsPartitioningSystem() const { return fIsPartitioningSystem; }
const char *ModuleName() const { return fModuleName; }
private:
void SetParent(Partition *parent) { fParent = parent; }
int fFD;
NodeList fChildren;
Partition *fParent;
bool fIsFileSystem;
bool fIsFileSystem, fIsPartitioningSystem;
const char *fModuleName;
};