xref: /haiku/src/kits/storage/disk_device/PartitionReference.h (revision c70623faaf3b579e8f7366c4fb74b010ad2181c1)
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
7 
8 #include <DiskDeviceDefs.h>
9 
10 #include <Referenceable.h>
11 
12 
13 namespace BPrivate {
14 
15 
16 class PartitionReference : public Referenceable {
17 public:
18 								PartitionReference(partition_id id = -1,
19 									uint32 changeCounter = 0);
20 								~PartitionReference();
21 
22 			partition_id		PartitionID() const;
23 			void				SetPartitionID(partition_id id);
24 
25 			uint32				ChangeCounter() const;
26 			void				SetChangeCounter(uint32 counter);
27 
28 private:
29 			partition_id		fID;
30 			uint32				fChangeCounter;
31 };
32 
33 
34 }	// namespace BPrivate
35 
36 using BPrivate::PartitionReference;
37 
38 #endif	// _PARTITION_REFERENCE_H
39