2018-10-14 11:16:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CharacterDevice.h"
|
|
|
|
|
|
|
|
class FullDevice final : public CharacterDevice {
|
2018-10-31 22:19:15 +00:00
|
|
|
AK_MAKE_ETERNAL
|
2018-10-14 11:16:09 +00:00
|
|
|
public:
|
|
|
|
FullDevice();
|
2019-01-15 08:17:22 +00:00
|
|
|
virtual ~FullDevice() override;
|
2018-10-14 11:16:09 +00:00
|
|
|
|
2019-01-21 01:33:01 +00:00
|
|
|
private:
|
|
|
|
// ^CharacterDevice
|
2019-02-25 20:19:57 +00:00
|
|
|
virtual ssize_t read(Process&, byte*, ssize_t) override;
|
|
|
|
virtual ssize_t write(Process&, const byte*, ssize_t) override;
|
2019-01-15 23:10:13 +00:00
|
|
|
virtual bool can_read(Process&) const override;
|
2019-01-15 08:17:22 +00:00
|
|
|
virtual bool can_write(Process&) const override { return true; }
|
2019-01-21 01:33:01 +00:00
|
|
|
virtual const char* class_name() const override { return "FullDevice"; }
|
2018-10-14 11:16:09 +00:00
|
|
|
};
|
|
|
|
|