file_system_module_info now contains the module name as well.
The Partition class now maintains a module name, accessible via the new method ModuleName(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7983 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -30,6 +30,7 @@ class Partition : public Node, public partition_data {
|
|||||||
|
|
||||||
Partition *Parent() const { return fParent; }
|
Partition *Parent() const { return fParent; }
|
||||||
bool IsFileSystem() const { return fIsFileSystem; }
|
bool IsFileSystem() const { return fIsFileSystem; }
|
||||||
|
const char *ModuleName() const { return fModuleName; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SetParent(Partition *parent) { fParent = parent; }
|
void SetParent(Partition *parent) { fParent = parent; }
|
||||||
@@ -38,6 +39,7 @@ class Partition : public Node, public partition_data {
|
|||||||
NodeList fChildren;
|
NodeList fChildren;
|
||||||
Partition *fParent;
|
Partition *fParent;
|
||||||
bool fIsFileSystem;
|
bool fIsFileSystem;
|
||||||
|
const char *fModuleName;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace boot
|
} // namespace boot
|
||||||
@@ -71,6 +73,7 @@ extern partition_module_info gApplePartitionModule;
|
|||||||
// and hence, don't need to follow the standard module specs.
|
// and hence, don't need to follow the standard module specs.
|
||||||
|
|
||||||
struct file_system_module_info {
|
struct file_system_module_info {
|
||||||
|
const char *module_name;
|
||||||
const char *pretty_name;
|
const char *pretty_name;
|
||||||
status_t (*get_file_system)(boot::Partition *device, Directory **_root);
|
status_t (*get_file_system)(boot::Partition *device, Directory **_root);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user