ladybird/Kernel/Devices/BlockDevice.h

20 lines
375 B
C
Raw Normal View History

2019-02-16 00:52:58 +01:00
#pragma once
#include <Kernel/Devices/Device.h>
2019-02-16 00:52:58 +01:00
class BlockDevice : public Device {
public:
virtual ~BlockDevice() override;
virtual bool is_seekable() const override { return true; }
2019-02-16 00:52:58 +01:00
protected:
BlockDevice(unsigned major, unsigned minor)
: Device(major, minor)
{
}
private:
virtual bool is_block_device() const final { return true; }
2019-02-16 00:52:58 +01:00
};