2018-10-14 03:59:22 +03:00
|
|
|
#pragma once
|
|
|
|
|
2019-04-03 13:36:40 +03:00
|
|
|
#include <Kernel/Devices/Device.h>
|
2018-10-14 03:59:22 +03:00
|
|
|
|
2019-02-16 02:47:20 +03:00
|
|
|
class CharacterDevice : public Device {
|
2018-10-14 03:59:22 +03:00
|
|
|
public:
|
2019-02-16 02:47:20 +03:00
|
|
|
virtual ~CharacterDevice() override;
|
2019-01-31 07:55:30 +03:00
|
|
|
|
2018-10-14 03:59:22 +03:00
|
|
|
protected:
|
2019-05-28 12:53:16 +03:00
|
|
|
CharacterDevice(unsigned major, unsigned minor)
|
|
|
|
: Device(major, minor)
|
|
|
|
{
|
|
|
|
}
|
2019-02-16 11:57:42 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
virtual bool is_character_device() const final { return true; }
|
2018-10-14 03:59:22 +03:00
|
|
|
};
|