summaryrefslogtreecommitdiff
path: root/gpt.h
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-09-24 20:39:41 -0400
committersrs5694 <srs5694@users.sourceforge.net>2010-09-24 20:39:41 -0400
commit5a081757ea2e32a491349544fea92826ccf739f6 (patch)
tree08a33c9b6b6a1a9a8e6c492b21287b972306b185 /gpt.h
parent82f3f0b529ec1bb936141ae41b03f95c72ce573a (diff)
downloadsgdisk-5a081757ea2e32a491349544fea92826ccf739f6.tar.gz
Added -F option to sgdisk
Diffstat (limited to 'gpt.h')
-rw-r--r--gpt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpt.h b/gpt.h
index 2bf3acb..115ce4f 100644
--- a/gpt.h
+++ b/gpt.h
@@ -16,7 +16,7 @@
#ifndef __GPTSTRUCTS
#define __GPTSTRUCTS
-#define GPTFDISK_VERSION "0.6.11-pre2"
+#define GPTFDISK_VERSION "0.6.11-pre3"
// Constants used by GPTData::PartsToMBR(). MBR_EMPTY must be the lowest-
// numbered value to refer to partition numbers. (Most will be 0 or positive,
@@ -177,10 +177,10 @@ public:
uint64_t GetSecondPartsLBA(void) {return secondHeader.partitionEntriesLBA;}
uint64_t GetFirstUsableLBA(void) {return mainHeader.firstUsableLBA;}
uint64_t GetLastUsableLBA(void) {return mainHeader.lastUsableLBA;}
- uint64_t GetPartFirstLBA(uint32_t i) {return partitions[i].GetFirstLBA();}
- uint64_t GetPartLastLBA(uint32_t i) {return partitions[i].GetLastLBA();}
uint32_t CountParts(void);
bool ValidPartNum (const uint32_t partNum);
+ const GPTPart & operator[](uint32_t partNum) const;
+ const GUIDData & GetDiskGUID(void) const;
// Find information about free space
uint64_t FindFirstAvailable(uint64_t start = 0);