1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:47:44 +00:00

Kernel: Rename SystemExposedFolder => SysFSDirectory

"Folder" is a GUI concept, let's call this "Directory".
Also, "System" is completely generic, so let's be more specific and
call this "SysFS..."
This commit is contained in:
Andreas Kling 2021-07-11 01:07:27 +02:00
parent 517170a986
commit 60a7a9d523
10 changed files with 25 additions and 25 deletions

View file

@ -43,7 +43,7 @@ private:
InodeIndex m_component_index {};
};
class SystemExposedFolder : public SysFSComponent {
class SysFSDirectory : public SysFSComponent {
public:
virtual KResultOr<size_t> entries_count() const override { return m_components.size(); };
virtual KResult traverse_as_directory(unsigned, Function<bool(FileSystem::DirectoryEntryView const&)>) const override;
@ -53,10 +53,10 @@ public:
virtual NonnullRefPtr<Inode> to_inode(SysFS const& sysfs_instance) const override final;
protected:
explicit SystemExposedFolder(StringView name);
SystemExposedFolder(StringView name, SystemExposedFolder const& parent_folder);
explicit SysFSDirectory(StringView name);
SysFSDirectory(StringView name, SysFSDirectory const& parent_folder);
NonnullRefPtrVector<SysFSComponent> m_components;
RefPtr<SystemExposedFolder> m_parent_folder;
RefPtr<SysFSDirectory> m_parent_folder;
};
}