Add a method to get the partition's file descriptor.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9955 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-15 17:56:55 +00:00
parent 0647bda361
commit 0c3888b965

View File

@ -1,7 +1,7 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/
#ifndef KERNEL_BOOT_PARTITIONS_H
#define KERNEL_BOOT_PARTITIONS_H
@ -35,6 +35,8 @@ class Partition : public Node, public partition_data {
bool IsPartitioningSystem() const { return fIsPartitioningSystem; }
const char *ModuleName() const { return fModuleName; }
int FD() const { return fFD; }
private:
int fFD;
NodeList fChildren;