diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-01-26 16:00:26 -0500 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-01-26 16:00:26 -0500 |
commit | 546a9c7c369df465021feecb20f6a8f81b6df6bc (patch) | |
tree | 280a7cd1fda2a5614582f8675e415d4043fe5e93 /gpt.h | |
parent | add79a6e1b3a1af1305f02d51eb3aa148f580caa (diff) | |
download | sgdisk-546a9c7c369df465021feecb20f6a8f81b6df6bc.tar.gz |
New files to support disk I/O restructuring and (currently broken)
Windows version.
Diffstat (limited to 'gpt.h')
-rw-r--r-- | gpt.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -6,7 +6,7 @@ #include <stdint.h> #include <sys/types.h> -#include <sys/ioctl.h> +#include "gptpart.h" #include "support.h" #include "parttypes.h" #include "mbr.h" @@ -16,7 +16,7 @@ #ifndef __GPTSTRUCTS #define __GPTSTRUCTS -#define GPTFDISK_VERSION "0.6.1" +#define GPTFDISK_VERSION "0.6.2-pre1" using namespace std; @@ -60,6 +60,7 @@ protected: struct GPTHeader secondHeader; MBRData protectiveMBR; char device[256]; // device filename + DiskIO myDisk; uint32_t blockSize; // device block size uint64_t diskSize; // size of device, in blocks GPTValidity state; // is GPT valid? @@ -93,11 +94,11 @@ public: // Load or save data from/to disk int LoadMBR(char* f) {return protectiveMBR.ReadMBRData(f);} - void PartitionScan(int fd); + void PartitionScan(void); int LoadPartitions(char* deviceFilename); - int ForceLoadGPTData(int fd); + int ForceLoadGPTData(void); int LoadMainTable(void); - void LoadSecondTableAsMain(void); + int LoadSecondTableAsMain(void); int SaveGPTData(int quiet = 0); int SaveGPTBackup(char* filename); int LoadGPTBackup(char* filename); |