* Moved GetNextSupportedType() and IsSubSystemFor() from

BDiskSystem to BPartition and reimplemented them using the userland
  add-on backend instead of syscalls. As a side effect this solves the
  TODO I recently added in GetNextSupportedType().
* Reimplemented BDiskSystem::GetTypeForContentType() using the userland
  add-on backend instead of a syscall.
* Moved GetTypeForContentType() and IsSubSystemFor() from
  BPartitionHandle to BDiskSystemAddOn. They were misplaced.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22592 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-10-17 01:01:49 +00:00
parent d712d042ea
commit fe6bd3b5b7
8 changed files with 132 additions and 63 deletions
+12
View File
@@ -128,6 +128,18 @@ public:
BDiskDeviceParameterEditor** editor);
status_t SetContentParameters(const char* parameters);
status_t GetNextSupportedType(int32 *cookie,
BString* type) const;
// Returns all partition types for this
// partition supported by the parent disk
// system.
status_t GetNextSupportedChildType(int32 *cookie,
BString* type) const;
// Returns all partition types for a child
// of this partition supported by its disk
// system.
bool IsSubSystem(const char* diskSystem) const;
bool CanInitialize(const char* diskSystem) const;
status_t GetInitializationParameterEditor(
const char* system,