* 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
+4 -3
View File
@@ -41,6 +41,10 @@ public:
const char* name, const char* parameters,
BPartitionHandle** handle);
virtual status_t GetTypeForContentType(const char* contentType,
BString* type);
virtual bool IsSubSystemFor(const BMutablePartition* child);
private:
BString fName;
uint32 fFlags;
@@ -62,14 +66,11 @@ public:
virtual bool SupportsInitializingChild(
const BMutablePartition* child,
const char* diskSystem);
virtual bool IsSubSystemFor(const BMutablePartition* child);
virtual status_t GetNextSupportedType(
const BMutablePartition* child,
int32* cookie, BString* type);
// child can be NULL
virtual status_t GetTypeForContentType(const char* contentType,
BString* type);
virtual status_t GetPartitioningInfo(BPartitioningInfo* info);