// CreateChild status_t BPartition::Delegate::CreateChild(off_t start, off_t size, const char* type, const char* name, const char* parameters, BPartition** child) { if (!fPartitionHandle) return B_NO_INIT; BMutablePartition* mutableChild; status_t error = fPartitionHandle->CreateChild(start, size, type, name, parameters, &mutableChild); if (error != B_OK) return error; if (child) *child = mutableChild->GetDelegate()->Partition(); return B_OK; }
// ChildAt BPartition::Delegate* BPartition::Delegate::ChildAt(int32 index) const { BMutablePartition* child = fMutablePartition.ChildAt(index); return child ? child->GetDelegate() : NULL; }