1 /* mbr.h -- MBR data structure definitions, types, and functions */
3 /* This program is copyright (c) 2009 by Roderick W. Smith. It is distributed
4 under the terms of the GNU GPL version 2, as detailed in the COPYING file. */
9 //#include "partnotes.h"
18 /****************************************
20 * MBRData class and related structures *
22 ****************************************/
24 // Full data in tweaked MBR format
25 class MBRData : public BasicMBRData {
29 MBRData(string deviceFilename) : BasicMBRData(deviceFilename) {}
30 MBRData & operator=(const BasicMBRData & orig);
32 // Functions to create, delete, or change partitions
33 // Pass EmptyMBR 1 to clear the boot loader code, 0 to leave it intact
34 void MakeProtectiveMBR(int clearBoot = 0);
35 void OptimizeEESize(void);
36 int DeleteByLocation(uint64_t start64, uint64_t length64);
38 // Functions to extract data on specific partitions....