1 /* 2 * Copyright 2013, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef GPT_DISK_ADD_ON_H 6 #define GPT_DISK_ADD_ON_H 7 8 9 #include <DiskSystemAddOn.h> 10 11 12 class GPTDiskAddOn : public BDiskSystemAddOn { 13 public: 14 GPTDiskAddOn(); 15 virtual ~GPTDiskAddOn(); 16 17 virtual status_t CreatePartitionHandle( 18 BMutablePartition* partition, 19 BPartitionHandle** handle); 20 21 virtual bool CanInitialize( 22 const BMutablePartition* partition); 23 virtual status_t ValidateInitialize( 24 const BMutablePartition* partition, 25 BString* name, const char* parameters); 26 virtual status_t Initialize(BMutablePartition* partition, 27 const char* name, const char* parameters, 28 BPartitionHandle** handle); 29 }; 30 31 32 #endif // GPT_DISK_ADD_ON_H 33