Replaced the Vector parameter of CreateMoveJob() by a simple array. Added CreateUninitializeJob() (empty implementation).

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4171 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-07-31 22:45:26 +00:00
parent 6ae0077c0d
commit 57c8af057e
2 changed files with 19 additions and 6 deletions

View File

@ -1,10 +1,8 @@
// KDiskDeviceJob.h
// KDiskDeviceJobFactory.h
#ifndef _K_DISK_DEVICE_JOB_FACTORY_H
#define _K_DISK_DEVICE_JOB_FACTORY_H
#include <Vector.h>
#include "disk_device_manager.h"
namespace BPrivate {
@ -24,7 +22,8 @@ public:
bool resizeContents);
KDiskDeviceJob *CreateMoveJob(partition_id parentID,
partition_id partitionID, off_t offset,
Vector<partition_id> *contentsToMove);
const partition_id *contentsToMove,
int32 contentsToMoveCount);
KDiskDeviceJob *CreateSetNameJob(partition_id parentID,
partition_id partitionID,
const char *name);
@ -42,6 +41,7 @@ public:
disk_system_id diskSystemID,
const char *name,
const char *parameters);
KDiskDeviceJob *CreateUninitializeJob(partition_id partitionID);
KDiskDeviceJob *CreateCreateChildJob(partition_id partitionID,
partition_id child, off_t offset,
off_t size, const char *type,

View File

@ -1,9 +1,13 @@
// KDiskDeviceJob.cpp
// KDiskDeviceJobFactory.cpp
#include <new>
#include "KDiskDeviceJob.h"
#include "KDiskDeviceJobFactory.h"
#include "KScanPartitionJob.h"
using namespace std;
// constructor
KDiskDeviceJobFactory::KDiskDeviceJobFactory()
{
@ -45,7 +49,8 @@ KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID,
KDiskDeviceJob *
KDiskDeviceJobFactory::CreateMoveJob(partition_id parentID,
partition_id partitionID, off_t offset,
Vector<partition_id> *contentsToMove)
const partition_id *contentsToMove,
int32 contentsToMoveCount)
{
// not implemented
return NULL;
@ -110,6 +115,14 @@ KDiskDeviceJobFactory::CreateInitializeJob(partition_id partitionID,
return NULL;
}
// CreateUninitializeJob
KDiskDeviceJob *
KDiskDeviceJobFactory::CreateUninitializeJob(partition_id partitionID)
{
// not implemented
return NULL;
}
// CreateCreateChildJob
KDiskDeviceJob *
KDiskDeviceJobFactory::CreateCreateChildJob(partition_id partitionID,