mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Kernel: Remove all friend declarations from SysFSComponentRegistry
Let them access the class using public API instead.
This commit is contained in:
parent
d40ea1a0a8
commit
a9decf5aa6
4 changed files with 6 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue