1 /* 2 * Copyright 2013, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <new> 8 9 #include <List.h> 10 11 #include "GPTDiskAddOn.h" 12 13 14 status_t 15 get_disk_system_add_ons(BList* addOns) 16 { 17 GPTDiskAddOn* addOn = new(std::nothrow) GPTDiskAddOn(); 18 if (!addOns->AddItem(addOn)) { 19 delete addOn; 20 return B_NO_MEMORY; 21 } 22 23 return B_OK; 24 } 25