summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/SysFS.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 01:17:33 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 01:17:57 +0200
commita9decf5aa68f5d0e0e077f89dc2652f43a9b2751 (patch)
treeca094d24b728e6c106d6423408bee8d7493b2242 /Kernel/FileSystem/SysFS.h
parentd40ea1a0a84d5056924d17efaea000a4b2214109 (diff)
downloadserenity-a9decf5aa68f5d0e0e077f89dc2652f43a9b2751.zip
Kernel: Remove all friend declarations from SysFSComponentRegistry
Let them access the class using public API instead.
Diffstat (limited to 'Kernel/FileSystem/SysFS.h')
-rw-r--r--Kernel/FileSystem/SysFS.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/Kernel/FileSystem/SysFS.h b/Kernel/FileSystem/SysFS.h
index 6486579eeb..765712c9c9 100644
--- a/Kernel/FileSystem/SysFS.h
+++ b/Kernel/FileSystem/SysFS.h
@@ -24,11 +24,6 @@ private:
};
class SysFSComponentRegistry {
- friend class SysFS;
- friend class SysFSComponent;
- friend class SysFSDirectory;
- friend class SysFSRootFolder;
-
public:
static SysFSComponentRegistry& the();
@@ -37,7 +32,8 @@ public:
SysFSComponentRegistry();
void register_new_component(SysFSComponent&);
- NonnullRefPtr<SysFSDirectory> root_folder() { return m_root_folder; }
+ SysFSDirectory& root_folder() { return m_root_folder; }
+ Lock& get_lock() { return m_lock; }
private:
Lock m_lock;