Adjusted to yesterday's API changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22605 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8c0dd56800
commit
271b1f27bf
@ -459,20 +459,11 @@ private:
|
||||
return;
|
||||
}
|
||||
|
||||
// get the disk system
|
||||
BDiskSystem diskSystem;
|
||||
status_t error = partition->GetDiskSystem(&diskSystem);
|
||||
if (error != B_OK) {
|
||||
printf("Failed to get disk system for partition: %s\n",
|
||||
strerror(error));
|
||||
return;
|
||||
}
|
||||
|
||||
// get supported types
|
||||
BObjectList<BString> supportedTypes(20, true);
|
||||
char typeBuffer[B_DISK_DEVICE_TYPE_LENGTH];
|
||||
BString typeBuffer;
|
||||
int32 cookie = 0;
|
||||
while (diskSystem.GetNextSupportedType(partition, &cookie, typeBuffer)
|
||||
while (partition->GetNextSupportedChildType(&cookie, &typeBuffer)
|
||||
== B_OK) {
|
||||
supportedTypes.AddItem(new BString(typeBuffer));
|
||||
}
|
||||
@ -485,7 +476,7 @@ private:
|
||||
|
||||
// get partitioning info
|
||||
BPartitioningInfo partitioningInfo;
|
||||
error = partition->GetPartitioningInfo(&partitioningInfo);
|
||||
status_t error = partition->GetPartitioningInfo(&partitioningInfo);
|
||||
if (error != B_OK) {
|
||||
printf("Failed to get partitioning info for partition: %s\n",
|
||||
strerror(error));
|
||||
|
Loading…
Reference in New Issue
Block a user