summaryrefslogtreecommitdiff
path: root/gptpart.h
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-10-07 13:00:45 -0400
committersrs5694 <srs5694@users.sourceforge.net>2010-10-07 13:00:45 -0400
commit0873e9d0e9345a2c4418b4718db525c9f1111c83 (patch)
tree4c6b2adf5d20e0bce392eb2cf0ebc47801d9495b /gptpart.h
parentab4b0438394df4ae6bdea86194e254d7d35fdea0 (diff)
downloadsgdisk-0873e9d0e9345a2c4418b4718db525c9f1111c83.tar.gz
Version 0.6.12 release; mostly changes in support for disks with other
than 512-byte sectors.
Diffstat (limited to 'gptpart.h')
-rw-r--r--gptpart.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gptpart.h b/gptpart.h
index 7ed6702..25da6df 100644
--- a/gptpart.h
+++ b/gptpart.h
@@ -21,6 +21,7 @@
#include "support.h"
#include "parttypes.h"
#include "guid.h"
+#include "attributes.h"
using namespace std;
@@ -43,7 +44,8 @@ class GPTPart {
GUIDData uniqueGUID;
uint64_t firstLBA;
uint64_t lastLBA;
- uint64_t attributes;
+ Attributes attributes;
+// uint64_t attributes;
unsigned char name[NAME_SIZE];
public:
GPTPart(void);
@@ -57,7 +59,8 @@ class GPTPart {
uint64_t GetFirstLBA(void) const {return firstLBA;}
uint64_t GetLastLBA(void) const {return lastLBA;}
uint64_t GetLengthLBA(void);
- uint64_t GetAttributes(void) {return attributes;}
+ Attributes GetAttributes(void) {return attributes;}
+ void ShowAttributes(uint32_t partNum) {attributes.ShowAttributes(partNum);}
string GetDescription(void);
int IsUsed(void);
@@ -69,6 +72,7 @@ class GPTPart {
void SetFirstLBA(uint64_t f) {firstLBA = f;}
void SetLastLBA(uint64_t l) {lastLBA = l;}
void SetAttributes(uint64_t a) {attributes = a;}
+ void SetAttributes(void) {attributes.ChangeAttributes();}
void SetName(const string & n);
void SetDefaultDescription(void);