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
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace boot {
|
||||||
|
|
||||||
class Partition : public partition_data, public Node {
|
class Partition : public partition_data, public Node {
|
||||||
public:
|
public:
|
||||||
Partition(int deviceFD);
|
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 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 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();
|
Partition *AddChild();
|
||||||
status_t Scan();
|
status_t Scan();
|
||||||
|
|
||||||
@@ -37,4 +42,6 @@ class Partition : public partition_data, public Node {
|
|||||||
bool fIsFileSystem;
|
bool fIsFileSystem;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace boot
|
||||||
|
|
||||||
#endif /* PARTITION_H */
|
#endif /* PARTITION_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user