From ec5d7064928d6e309f6c3465c30006c21ccda7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Nov 2004 02:10:10 +0000 Subject: [PATCH] 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 --- headers/private/kernel/boot/partitions.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/headers/private/kernel/boot/partitions.h b/headers/private/kernel/boot/partitions.h index eaa6668474..97cd0f0dab 100644 --- a/headers/private/kernel/boot/partitions.h +++ b/headers/private/kernel/boot/partitions.h @@ -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; };