From 21d68032335618f77f5e2c9ba492c67f1d47b0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 12 Sep 2003 01:07:03 +0000 Subject: [PATCH] The class partition is now in the namespace "boot". Now overloads Size() and Type() as well. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4630 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/loader/Partition.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/kernel/boot/loader/Partition.h b/src/kernel/boot/loader/Partition.h index 8545cf6a24..277dc36c25 100644 --- a/src/kernel/boot/loader/Partition.h +++ b/src/kernel/boot/loader/Partition.h @@ -12,6 +12,8 @@ #include +namespace boot { + class Partition : public partition_data, public Node { public: Partition(int deviceFD); @@ -20,6 +22,9 @@ class Partition : public partition_data, public Node { virtual ssize_t ReadAt(void *cookie, off_t offset, void *buffer, size_t bufferSize); virtual ssize_t WriteAt(void *cookie, off_t offset, const void *buffer, size_t bufferSize); + virtual off_t Size() const; + virtual int32 Type() const; + Partition *AddChild(); status_t Scan(); @@ -37,4 +42,6 @@ class Partition : public partition_data, public Node { bool fIsFileSystem; }; +} // namespace boot + #endif /* PARTITION_H */