From 25a5c7d03dd964ee0715bd33f0fc77f08c76a620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 14 Sep 2003 16:41:19 +0000 Subject: [PATCH] Moved the class definition back to , since it's now public again. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4678 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/loader/Partition.h | 47 ------------------------------ 1 file changed, 47 deletions(-) delete mode 100644 src/kernel/boot/loader/Partition.h diff --git a/src/kernel/boot/loader/Partition.h b/src/kernel/boot/loader/Partition.h deleted file mode 100644 index 277dc36c25..0000000000 --- a/src/kernel/boot/loader/Partition.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the OpenBeOS License. -*/ -#ifndef PARTITION_H -#define PARTITION_H - - -#include -#include - -#include - - -namespace boot { - -class Partition : public partition_data, public Node { - public: - Partition(int deviceFD); - virtual ~Partition(); - - 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(); - - Partition *Parent() const { return fParent; } - bool IsFileSystem() const { return fIsFileSystem; } - - static size_t LinkOffset() { return sizeof(partition_data); } - - private: - void SetParent(Partition *parent) { fParent = parent; } - - int fFD; - list fChildren; - Partition *fParent; - bool fIsFileSystem; -}; - -} // namespace boot - -#endif /* PARTITION_H */