diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-08-22 22:44:42 -0400 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-08-22 22:44:42 -0400 |
commit | 9ddc14bb9b154518e2b8384d3f4571cf657c7920 (patch) | |
tree | f921f4c8287c9e4270bbd47e5a60cb536e51b3f9 /gpt.h | |
parent | f9312b0ca9af86f280adad36eb660f6e74720c2c (diff) | |
download | sgdisk-9ddc14bb9b154518e2b8384d3f4571cf657c7920.tar.gz |
Revisions for 0.6.10 release
Diffstat (limited to 'gpt.h')
-rw-r--r-- | gpt.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -16,7 +16,7 @@ #ifndef __GPTSTRUCTS #define __GPTSTRUCTS -#define GPTFDISK_VERSION "0.6.10-pre1" +#define GPTFDISK_VERSION "0.6.10" // Constants used by GPTData::PartsToMBR(). MBR_EMPTY must be the lowest- // numbered value to refer to partition numbers. (Most will be 0 or positive, @@ -179,6 +179,7 @@ public: 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); // Find information about free space uint64_t FindFirstAvailable(uint64_t start = 0); @@ -200,6 +201,12 @@ public: // Endianness functions void ReverseHeaderBytes(struct GPTHeader* header); void ReversePartitionBytes(); // for endianness + + // Attributes functions + int ManageAttributes(int partNum, const string & command, const string & bits); + void ShowAttributes(const uint32_t partNum); + void GetAttribute(const uint32_t partNum, const string& attributeBits); + }; // class GPTData // Function prototypes.... |