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;
|
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
|
// get supported types
|
||||||
BObjectList<BString> supportedTypes(20, true);
|
BObjectList<BString> supportedTypes(20, true);
|
||||||
char typeBuffer[B_DISK_DEVICE_TYPE_LENGTH];
|
BString typeBuffer;
|
||||||
int32 cookie = 0;
|
int32 cookie = 0;
|
||||||
while (diskSystem.GetNextSupportedType(partition, &cookie, typeBuffer)
|
while (partition->GetNextSupportedChildType(&cookie, &typeBuffer)
|
||||||
== B_OK) {
|
== B_OK) {
|
||||||
supportedTypes.AddItem(new BString(typeBuffer));
|
supportedTypes.AddItem(new BString(typeBuffer));
|
||||||
}
|
}
|
||||||
@ -485,7 +476,7 @@ private:
|
|||||||
|
|
||||||
// get partitioning info
|
// get partitioning info
|
||||||
BPartitioningInfo partitioningInfo;
|
BPartitioningInfo partitioningInfo;
|
||||||
error = partition->GetPartitioningInfo(&partitioningInfo);
|
status_t error = partition->GetPartitioningInfo(&partitioningInfo);
|
||||||
if (error != B_OK) {
|
if (error != B_OK) {
|
||||||
printf("Failed to get partitioning info for partition: %s\n",
|
printf("Failed to get partitioning info for partition: %s\n",
|
||||||
strerror(error));
|
strerror(error));
|
||||||
|
Loading…
Reference in New Issue
Block a user