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