headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / storage / disk_device / PartitionReference.h
blob498704042bd8fd54bcb2280a2091aa28174cb9d5
1 /*
2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PARTITION_REFERENCE_H
6 #define _PARTITION_REFERENCE_H
8 #include <DiskDeviceDefs.h>
10 #include <Referenceable.h>
13 namespace BPrivate {
16 class PartitionReference : public BReferenceable {
17 public:
18 PartitionReference(partition_id id = -1,
19 int32 changeCounter = 0);
20 ~PartitionReference();
22 void SetTo(partition_id id, int32 changeCounter);
24 partition_id PartitionID() const;
25 void SetPartitionID(partition_id id);
27 int32 ChangeCounter() const;
28 void SetChangeCounter(int32 counter);
30 private:
31 partition_id fID;
32 int32 fChangeCounter;
36 } // namespace BPrivate
38 using BPrivate::PartitionReference;
40 #endif // _PARTITION_REFERENCE_H