haiku/headers/private/storage/DiskDevicePrivate.h
Ingo Weinhold bef8916ea6 * Used partition_id, disk_job_id and disk_system_id instead of uint32.
* Replaced uint32 for indices and counts with int32.
* Some additions to BDiskDeviceRoster and BDiskDeviceJob.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 23:02:16 +00:00

58 lines
1.3 KiB
C++

//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
#ifndef _DISK_DEVICE_PRIVATE_H
#define _DISK_DEVICE_PRIVATE_H
#include <DiskDeviceVisitor.h>
#include <SupportDefs.h>
class BMessenger;
namespace BPrivate {
// PartitionFilter
class PartitionFilter {
public:
virtual bool Filter(BPartition *partition) = 0;
};
// PartitionFilterVisitor
class PartitionFilterVisitor : public BDiskDeviceVisitor {
public:
PartitionFilterVisitor(BDiskDeviceVisitor *visitor,
PartitionFilter *filter);
virtual bool Visit(BDiskDevice *device);
virtual bool Visit(BPartition *partition);
private:
BDiskDeviceVisitor *fVisitor;
PartitionFilter *fFilter;
};
// IDFinderVisitor
class IDFinderVisitor : public BDiskDeviceVisitor {
public:
IDFinderVisitor(partition_id id);
virtual bool Visit(BDiskDevice *device);
virtual bool Visit(BPartition *partition);
private:
partition_id fID;
};
status_t get_disk_device_messenger(BMessenger *messenger);
} // namespace BPrivate
using BPrivate::PartitionFilter;
using BPrivate::PartitionFilterVisitor;
using BPrivate::IDFinderVisitor;
using BPrivate::get_disk_device_messenger;
#endif // _DISK_DEVICE_PRIVATE_H