00001 #if !defined(__PARTITIONS_HPP__) 00002 #define __PARTITIONS_HPP__ 00003 00004 // 00005 // local includes 00006 // 00007 #include "mbr.hpp" 00008 #include "gpt.hpp" 00009 00014 struct partition_type_descriptor 00015 { 00016 static const efi::guid_t GUID_EFI_SYSTEM, GUID_MS_BASIC_DATA; 00017 00018 const char *name; 00019 uint8_t code; 00020 efi::guid_t guid; 00021 00025 static const partition_type_descriptor *get(const string &name); 00026 00030 static const partition_type_descriptor *get(uint8_t code); 00031 00036 static const partition_type_descriptor *get(const efi::guid_t guid); 00037 }; 00038 00039 #endif 00040 00041 // ***** end of source ***** // 00042