From 42b7adc3a451177f38795e2e2f8bfc0c45103268 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 31 Jan 2003 22:05:09 +0000 Subject: [PATCH] Added file header. Minor changes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2613 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/storage/DiskDevice.h | 5 ++++- headers/private/storage/DiskDeviceRoster.h | 14 ++++++++++---- headers/private/storage/DiskDeviceVisitor.h | 5 ++++- headers/private/storage/Partition.h | 5 ++++- headers/private/storage/Session.h | 5 ++++- 5 files changed, 26 insertions(+), 8 deletions(-) diff --git a/headers/private/storage/DiskDevice.h b/headers/private/storage/DiskDevice.h index 89f1b7fb38..0edb3cb721 100644 --- a/headers/private/storage/DiskDevice.h +++ b/headers/private/storage/DiskDevice.h @@ -1,4 +1,7 @@ -// DiskDevice.h +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +//--------------------------------------------------------------------- #ifndef _DISK_DEVICE_H #define _DISK_DEVICE_H diff --git a/headers/private/storage/DiskDeviceRoster.h b/headers/private/storage/DiskDeviceRoster.h index 2d21974bb1..96efd0af31 100644 --- a/headers/private/storage/DiskDeviceRoster.h +++ b/headers/private/storage/DiskDeviceRoster.h @@ -1,4 +1,7 @@ -// DiskDeviceRoster.h +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +//--------------------------------------------------------------------- #ifndef _DISK_DEVICE_ROSTER_H #define _DISK_DEVICE_ROSTER_H @@ -73,10 +76,13 @@ public: BPartition **partition = NULL); // return true if terminated early - BDiskDevice *DeviceWithID(int32 id) const; - BSession *SessionWithID(int32 id, BDiskDevice *device) const; + + status_t GetDeviceWithID(int32 id, BDiskDevice *device) const; + status_t GetSessionWithID(int32 id, BDiskDevice *device, + BSession **session) const; // inits device to the device containing the session - BPartition *PartitionWithID(int32 id, BDiskDevice *device) const; + status_t GetPartitionWithID(int32 id, BDiskDevice *device, + BPartition **partition) const; // inits device to the device containing the partition status_t StartWatching(BMessenger target, diff --git a/headers/private/storage/DiskDeviceVisitor.h b/headers/private/storage/DiskDeviceVisitor.h index 8b0b64f4c7..faebd48a7c 100644 --- a/headers/private/storage/DiskDeviceVisitor.h +++ b/headers/private/storage/DiskDeviceVisitor.h @@ -1,4 +1,7 @@ -// DiskDeviceIteration.h +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +//--------------------------------------------------------------------- #ifndef _DISK_DEVICE_VISITOR_H #define _DISK_DEVICE_VISITOR_H diff --git a/headers/private/storage/Partition.h b/headers/private/storage/Partition.h index 21d6d5c23e..62ffc13ce7 100644 --- a/headers/private/storage/Partition.h +++ b/headers/private/storage/Partition.h @@ -1,4 +1,7 @@ -// Partition.h +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +//--------------------------------------------------------------------- #ifndef _PARTITION_H #define _PARTITION_H diff --git a/headers/private/storage/Session.h b/headers/private/storage/Session.h index edca35bfc4..d101fe6b78 100644 --- a/headers/private/storage/Session.h +++ b/headers/private/storage/Session.h @@ -1,4 +1,7 @@ -// Session.h +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +//--------------------------------------------------------------------- #ifndef _SESSION_H #define _SESSION_H