Added LoadDiskSystem() version, that takes a disk system name.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4018 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
58f77562c6
commit
24fa6c601b
@ -91,6 +91,7 @@ public:
|
||||
int32 CountDiskSystems();
|
||||
KDiskSystem *NextDiskSystem(int32 *cookie);
|
||||
|
||||
KDiskSystem *LoadDiskSystem(const char *name);
|
||||
KDiskSystem *LoadDiskSystem(disk_system_id id);
|
||||
KDiskSystem *LoadNextDiskSystem(int32 *cookie);
|
||||
|
||||
|
@ -664,6 +664,19 @@ KDiskDeviceManager::NextDiskSystem(int32 *cookie)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// LoadDiskSystem
|
||||
KDiskSystem *
|
||||
KDiskDeviceManager::LoadDiskSystem(const char *name)
|
||||
{
|
||||
KDiskSystem *diskSystem = NULL;
|
||||
if (ManagerLocker locker = this) {
|
||||
diskSystem = FindDiskSystem(name);
|
||||
if (diskSystem && diskSystem->Load() != B_OK)
|
||||
diskSystem = NULL;
|
||||
}
|
||||
return diskSystem;
|
||||
}
|
||||
|
||||
// LoadDiskSystem
|
||||
KDiskSystem *
|
||||
KDiskDeviceManager::LoadDiskSystem(disk_system_id id)
|
||||
|
Loading…
Reference in New Issue
Block a user