diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-01-28 21:10:52 -0500 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-01-28 21:10:52 -0500 |
commit | 0a6973119c9e9984ad47a6da3231e8d16f996c5c (patch) | |
tree | 456b81b56315eca6ac64688db34cbb0a25a87f41 /gptpart.h | |
parent | 91544e13fb56ef339277a8f73f761ff004b2e74f (diff) | |
download | sgdisk-0a6973119c9e9984ad47a6da3231e8d16f996c5c.tar.gz |
Nearing 0.6.2 release; Windows version now works.
Diffstat (limited to 'gptpart.h')
-rw-r--r-- | gptpart.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -62,21 +62,21 @@ class GPTPart { string GetName(void); // Simple data assignment: - void SetType(struct GUIDData t) {partitionType = t;} - void SetType(uint16_t hex) {partitionType = typeHelper.IDToGUID(hex);} + void SetType(struct GUIDData t); + void SetType(uint16_t hex) {SetType(typeHelper.IDToGUID(hex));} void SetUniqueGUID(struct GUIDData u) {uniqueGUID = u;} void SetUniqueGUID(int zeroOrRandom); void SetFirstLBA(uint64_t f) {firstLBA = f;} void SetLastLBA(uint64_t l) {lastLBA = l;} void SetAttributes(uint64_t a) {attributes = a;} - void SetName(string n); + void SetName(const string & n); // Additional functions GPTPart & operator=(const GPTPart & orig); void ShowSummary(int partNum, uint32_t blockSize); // display summary information (1-line) void ShowDetails(uint32_t blockSize); // display detailed information (multi-line) void BlankPartition(void); // empty partition of data - int DoTheyOverlap(GPTPart* other); // returns 1 if there's overlap + int DoTheyOverlap(const GPTPart & other); // returns 1 if there's overlap void ReversePartBytes(void); // reverse byte order of all integer fields // Functions requiring user interaction |