headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / storage / disk_device / DiskDeviceJob.cpp
blob8973eae489221267c9c705bc318937905a6339fd
1 /*
2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
6 #include "DiskDeviceJob.h"
8 #include "PartitionReference.h"
11 // constructor
12 DiskDeviceJob::DiskDeviceJob(PartitionReference* partition,
13 PartitionReference* child)
15 fPartition(partition),
16 fChild(child)
18 if (fPartition)
19 fPartition->AcquireReference();
21 if (fChild)
22 fChild->AcquireReference();
26 // destructor
27 DiskDeviceJob::~DiskDeviceJob()
29 if (fPartition)
30 fPartition->ReleaseReference();
32 if (fChild)
33 fChild->ReleaseReference();