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:
Axel Dörfler 2004-06-15 16:51:33 +00:00
parent 995a393e12
commit 7765cbf6f4

View File

@ -30,6 +30,7 @@ class Partition : public Node, public partition_data {
Partition *Parent() const { return fParent; }
bool IsFileSystem() const { return fIsFileSystem; }
const char *ModuleName() const { return fModuleName; }
private:
void SetParent(Partition *parent) { fParent = parent; }
@ -38,6 +39,7 @@ class Partition : public Node, public partition_data {
NodeList fChildren;
Partition *fParent;
bool fIsFileSystem;
const char *fModuleName;
};
} // namespace boot
@ -71,6 +73,7 @@ extern partition_module_info gApplePartitionModule;
// and hence, don't need to follow the standard module specs.
struct file_system_module_info {
const char *module_name;
const char *pretty_name;
status_t (*get_file_system)(boot::Partition *device, Directory **_root);
};