summaryrefslogtreecommitdiff
path: root/parttypes.h
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-01-29 17:44:04 -0500
committersrs5694 <srs5694@users.sourceforge.net>2010-01-29 17:44:04 -0500
commite321d444dcca514cf6b53459e388ddcbaab6176c (patch)
tree7c2c07142193cf2a66a958f59fb35d0ee0ca9ca0 /parttypes.h
parent0a6973119c9e9984ad47a6da3231e8d16f996c5c (diff)
downloadsgdisk-e321d444dcca514cf6b53459e388ddcbaab6176c.tar.gz
Final 0.6.2 release; misc. bug fixes & Windows version
Diffstat (limited to 'parttypes.h')
-rw-r--r--parttypes.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/parttypes.h b/parttypes.h
index 7e6d892..1534a52 100644
--- a/parttypes.h
+++ b/parttypes.h
@@ -10,9 +10,6 @@
#ifndef __PARTITION_TYPES
#define __PARTITION_TYPES
-// Set the size of the name string
-#define PNAME_SIZE 80
-
using namespace std;
// A partition type
@@ -22,7 +19,7 @@ struct AType {
// codes required by GPT
uint16_t MBRType;
struct GUIDData GUIDType;
- char name[PNAME_SIZE];
+ string name;
int display; // 1 to show to users as available type, 0 not to
AType* next;
}; // struct AType
@@ -36,7 +33,7 @@ public:
PartTypes(void);
~PartTypes(void);
int AddType(uint16_t mbrType, uint64_t guidData1, uint64_t guidData2,
- const char* name, int toDisplay = 1);
+ const char * name, int toDisplay = 1);
void ShowTypes(void);
int Valid(uint16_t);
string GUIDToName(struct GUIDData typeCode);