1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

FileSystem: VFS should require Badge<Device> for device registration.

This commit is contained in:
Andreas Kling 2019-05-31 15:36:49 +02:00
parent a1fdda3e20
commit fa6446fc0d
3 changed files with 10 additions and 9 deletions

View file

@ -6,12 +6,12 @@ Device::Device(unsigned major, unsigned minor)
: m_major(major)
, m_minor(minor)
{
VFS::the().register_device(*this);
VFS::the().register_device({}, *this);
}
Device::~Device()
{
VFS::the().unregister_device(*this);
VFS::the().unregister_device({}, *this);
}
String Device::absolute_path(FileDescriptor&) const